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,
route: route,
handlers: {
[endpoint.method]: endpoint.fn,
[endpoint.method.toLowerCase()]: endpoint.fn,
},
})
}