mirror of
https://github.com/khairul169/home-lab.git
synced 2025-04-28 08:39:34 +07:00
16 lines
362 B
TypeScript
16 lines
362 B
TypeScript
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;
|