mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
18 lines
451 B
TypeScript
18 lines
451 B
TypeScript
import { Hono } from "hono";
|
|
import { logger } from "hono/logger";
|
|
import { ImageRoute } from "./image";
|
|
|
|
const app = new Hono();
|
|
app
|
|
.use(logger(), async (c, next) => {
|
|
// c.header("Cache-Control", "public, max-age=315360000, immutable");
|
|
return next();
|
|
})
|
|
|
|
const routes = app
|
|
.get("/", (c) => c.text("Hello World 👋🏾"))
|
|
.route("/image", ImageRoute.route)
|
|
|
|
|
|
export type Routes = typeof routes;
|
|
export default app; |