home-lab/backend/routes/_routes.ts

20 lines
468 B
TypeScript
Raw Normal View History

2024-03-16 07:52:42 +07:00
import { Hono } from "hono";
import auth from "./auth";
import system from "./system";
import _process from "./process";
2024-03-16 10:14:17 +07:00
import apps from "./apps";
2024-03-16 16:03:15 +07:00
import files from "./files";
2024-03-16 07:52:42 +07:00
import { authMiddleware } from "../lib/jwt";
const routes = new Hono()
.route("/auth", auth)
.use(authMiddleware)
.route("/system", system)
2024-03-16 10:14:17 +07:00
.route("/process", _process)
2024-03-16 16:03:15 +07:00
.route("/apps", apps)
.route("/files", files);
2024-03-16 07:52:42 +07:00
export type AppType = typeof routes;
export default routes;