Files
netris-nestri/packages/functions/src/images/index.ts
2025-06-05 03:39:15 +03:00

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;