summaryrefslogtreecommitdiff
path: root/garden/src/routes.ts
blob: 2a2b6c3b23becbb27af404319c54a69707684ab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { lazy } from "solid-js";
import type { RouteDefinition } from "@solidjs/router";

import Home from "./pages/home";

export const routes: RouteDefinition[] = [
  { path: "/", component: Home },
  { path: "/login", component: lazy(() => import("./pages/login")) },
  { path: "/register", component: lazy(() => import("./pages/register")) },
  { path: "/account/verify", component: lazy(() => import("./pages/account/verify")) },
  { path: "/account/reactivate", component: lazy(() => import("./pages/account/reactivate")) },
  { path: "/council/users", component: lazy(() => import("./pages/council/users")) },
  { path: "/council/users/:username", component: lazy(() => import("./pages/council/user")) },
  { path: "/council/bannedips", component: lazy(() => import("./pages/council/bannedips")) },
  { path: "/council/auditlog", component: lazy(() => import("./pages/council/auditlog")) },
  { path: "/council/auditlog/:ref", component: lazy(() => import("./pages/council/auditdetail")) },
  { path: "/council/districts", component: lazy(() => import("./pages/council/districts")) },
  { path: "/districts", component: lazy(() => import("./pages/districts/index")) },
  { path: "/districts/submit", component: lazy(() => import("./pages/districts/submit")) },
  { path: "/districts/:slug", component: lazy(() => import("./pages/districts/district")) },
  { path: "/letters", component: lazy(() => import("./pages/letters/index")) },
  { path: "/letters/:ref", component: lazy(() => import("./pages/letters/detail")) },
  { path: "**", component: lazy(() => import("./errors/404")) },
];