Code: Select all
W (72320) httpd_uri: httpd_uri: Method '2' not allowed for URI '/rom/ds1_svg'
W (72320) httpd_txrx: httpd_resp_send_err: 405 Method Not Allowed - Request method for this URI is not handled by server
This registers the handler.
Code: Select all
httpd_uri_t file_download = {
.uri = "/*", // Match all URIs of type /path/to/file (except index.html)
.method = HTTP_GET,
.handler = download_get_handler,
.user_ctx = NULL
};