From 50c74f4ded728164e66e2ee6d0a282500cc4342b Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Sat, 22 Jun 2024 07:23:59 +0200 Subject: [PATCH] add mandatory arg (nil as middleware) when using find-handler --- src/router/handler.phel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/handler.phel b/src/router/handler.phel index 12b68f6..168a132 100644 --- a/src/router/handler.phel +++ b/src/router/handler.phel @@ -33,7 +33,7 @@ (let [route (get-in request [:attributes :route])] (if route (let [method (-> request :method php/strtolower keyword) - handler (find-handler route method)] + handler (find-handler route method nil)] (if handler (not-acceptable request) (method-not-allowed request)))