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:
Marvin Hagemeister
2025-09-15 10:44:21 +02:00
committed by GitHub
parent b31f36265c
commit f9ba5417c4
5 changed files with 61 additions and 11 deletions
@@ -0,0 +1,4 @@
import type { HandlerFn } from "@fresh/core";
export const handler: HandlerFn<null, { text: string }> = (ctx) =>
new Response(ctx.state.text);