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
1import { Hono } from "hono";
2import { loadConfig } from "../lib/config.js";
3import { createHomeRoutes } from "./home.js";
4import { createBoardsRoutes } from "./boards.js";
5import { createTopicsRoutes } from "./topics.js";
6import { createLoginRoutes } from "./login.js";
7import { createNewTopicRoutes } from "./new-topic.js";
8import { createAuthRoutes } from "./auth.js";
9import { createModActionRoute } from "./mod.js";
10import { createAdminRoutes } from "./admin.js";
11import { createNotFoundRoute } from "./not-found.js";
12
13const config = loadConfig();
14
15export const webRoutes = new Hono()
16 .route("/", createHomeRoutes(config.appviewUrl))
17 .route("/", createBoardsRoutes(config.appviewUrl))
18 .route("/", createTopicsRoutes(config.appviewUrl))
19 .route("/", createLoginRoutes(config.appviewUrl))
20 .route("/", createNewTopicRoutes(config.appviewUrl))
21 .route("/", createAuthRoutes(config.appviewUrl))
22 .route("/", createModActionRoute(config.appviewUrl))
23 .route("/", createAdminRoutes(config.appviewUrl))
24 .route("/", createNotFoundRoute(config.appviewUrl));