home-lab/backend/routes/_routes.ts

16 lines
362 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";
import { authMiddleware } from "../lib/jwt";
const routes = new Hono()
.route("/auth", auth)
.use(authMiddleware)
.route("/system", system)
.route("/process", _process);
export type AppType = typeof routes;
export default routes;