Files
sweet/packages/plugin-vite/demo/routes/tests/middlewares/index.tsx
T
Marvin Hagemeister f9ba5417c4 fix: bring back support for middleware Array (#3434)
Our validation didn't account for `_middleware` files exporting an Array
of middlewares.

Fixes https://github.com/denoland/fresh/issues/3400
2025-09-15 10:44:21 +02:00

5 lines
146 B
TypeScript

import type { HandlerFn } from "@fresh/core";
export const handler: HandlerFn<null, { text: string }> = (ctx) =>
new Response(ctx.state.text);