feat: Create image pipeline

This commit is contained in:
Wanjohi
2025-06-04 13:50:06 +03:00
parent e67a8d2b32
commit 0124af1b70
9 changed files with 289 additions and 6 deletions

View File

@@ -0,0 +1,18 @@
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;