Our validation didn't account for `_middleware` files exporting an Array of middlewares. Fixes https://github.com/denoland/fresh/issues/3400
5 lines
146 B
TypeScript
5 lines
146 B
TypeScript
import type { HandlerFn } from "@fresh/core";
|
|
|
|
export const handler: HandlerFn<null, { text: string }> = (ctx) =>
|
|
new Response(ctx.state.text);
|