1
0
cvsa/packages/backend/src/main.ts
2025-10-06 17:04:16 +08:00

19 lines
491 B
TypeScript

import { Hono } from "hono";
import type { TimingVariables } from "hono/timing";
import { startServer } from "./startServer";
import { configureRoutes } from "./routing";
import { configureMiddleWares } from "./middleware";
import { notFoundRoute } from "routes/404";
type Variables = TimingVariables;
const app = new Hono<{ Variables: Variables }>();
app.notFound(notFoundRoute);
configureMiddleWares(app);
configureRoutes(app);
await startServer(app);
export const VERSION = "0.6.0";