lowercase method for better handling

This commit is contained in:
SrGooglo 2025-03-20 11:01:11 +00:00
parent 4e1ccea56b
commit 63e8752ac5

View File

@ -196,7 +196,7 @@ class Server {
...endpoint, ...endpoint,
route: route, route: route,
handlers: { handlers: {
[endpoint.method]: endpoint.fn, [endpoint.method.toLowerCase()]: endpoint.fn,
}, },
}) })
} }