Merge pull request #3 from PlxEV/codex/resolver-problemas-no-servidor-rest
Fix wildcard routing for static files
This commit is contained in:
@@ -881,7 +881,7 @@ esp_err_t rest_init(const char *base_path)
|
|||||||
|
|
||||||
// URI handler for getting web server files
|
// URI handler for getting web server files
|
||||||
httpd_uri_t common_get_uri = {
|
httpd_uri_t common_get_uri = {
|
||||||
.uri = "/",
|
.uri = "/*",
|
||||||
.method = HTTP_GET,
|
.method = HTTP_GET,
|
||||||
.handler = rest_common_get_handler,
|
.handler = rest_common_get_handler,
|
||||||
.user_ctx = rest_context
|
.user_ctx = rest_context
|
||||||
|
|||||||
Reference in New Issue
Block a user