mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
⭐ feat: Create image pipeline
This commit is contained in:
18
packages/functions/src/images/index.ts
Normal file
18
packages/functions/src/images/index.ts
Normal 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;
|
||||
Reference in New Issue
Block a user