WIP! A BB-style forum, on the ATmosphere! We're still working... we'll be back soon when we have something to show off!
node typescript hono htmx atproto

feat(web): register createThemeMiddleware on webRoutes (ATB-53)

+4 -1
+4 -1
apps/web/src/routes/index.ts
··· 1 1 import { Hono } from "hono"; 2 2 import { loadConfig } from "../lib/config.js"; 3 + import { WebAppEnv } from "../lib/theme-resolution.js"; 4 + import { createThemeMiddleware } from "../middleware/theme.js"; 3 5 import { createHomeRoutes } from "./home.js"; 4 6 import { createBoardsRoutes } from "./boards.js"; 5 7 import { createTopicsRoutes } from "./topics.js"; ··· 12 14 13 15 const config = loadConfig(); 14 16 15 - export const webRoutes = new Hono() 17 + export const webRoutes = new Hono<WebAppEnv>() 18 + .use("*", createThemeMiddleware(config.appviewUrl)) 16 19 .route("/", createHomeRoutes(config.appviewUrl)) 17 20 .route("/", createBoardsRoutes(config.appviewUrl)) 18 21 .route("/", createTopicsRoutes(config.appviewUrl))