mirror of
https://github.com/khairul169/home-lab.git
synced 2025-04-29 00:59:36 +07:00
18 lines
413 B
TypeScript
18 lines
413 B
TypeScript
import { Hono } from "hono";
|
|
import auth from "./auth";
|
|
import system from "./system";
|
|
import _process from "./process";
|
|
import apps from "./apps";
|
|
import { authMiddleware } from "../lib/jwt";
|
|
|
|
const routes = new Hono()
|
|
.route("/auth", auth)
|
|
.use(authMiddleware)
|
|
.route("/system", system)
|
|
.route("/process", _process)
|
|
.route("/apps", apps);
|
|
|
|
export type AppType = typeof routes;
|
|
|
|
export default routes;
|