You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
httpd:route(
{path = "/*slug", public = true, name = "default"},
http_middleware.v1(handle_get_default, http_collector)
)
Currently it is not possible to have "default" http endpoint and static content path at the same time. As "default" overlap "static_file".
I'd like to have default http route to match "unspecified" routes, to log it and return specific/custom response (json, etc.). Currently it is not possible because it iterates/bruteforces:
through httpd.routes ;
if nothing found from 1., it takes it as "static" content, if found returns funct;
http/http/server.lua
Lines 717 to 720 in da78c01
Static_file dir should a part of route.
Currently it is not possible to have "default" http endpoint and static content path at the same time. As "default" overlap "static_file".
I'd like to have default http route to match "unspecified" routes, to log it and return specific/custom response (json, etc.). Currently it is not possible because it iterates/bruteforces:
httpd.routes
;http/http/server.lua
Line 611 in da78c01
I suggest "static" directory path should be registered/added to
httpd.routes
as well.The text was updated successfully, but these errors were encountered: