diff --git a/src/zap.ts b/src/zap.ts index d8cca22..a92dc1c 100644 --- a/src/zap.ts +++ b/src/zap.ts @@ -206,7 +206,7 @@ export function notFound() { // Router ---------------------------------------------------------------------- -export function router(...handlers: RouteHandler[]) { +export function router(...handlers: RouteHandler[]) { return async function (req: ServerRequest, res: ServerResponse) { for (const current of handlers) { if (req.method !== current.method) continue