19 lines
503 B
TypeScript
19 lines
503 B
TypeScript
import { Hono } from "hono";
|
|
import type { TimingVariables } from "hono/timing";
|
|
import { startServer } from "./startServer.ts";
|
|
import { configureRoutes } from "./routing.ts";
|
|
import { configureMiddleWares } from "./middleware.ts";
|
|
import { notFoundRoute } from "routes/404.ts";
|
|
|
|
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";
|