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
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
import type { HandlerFn } from "@fresh/core";
|
||||
|
||||
export const handler: HandlerFn<null, { text: string }> = (ctx) =>
|
||||
new Response(ctx.state.text);
|
||||
Reference in New Issue
Block a user