Static

Serve static web-app files from the ESP32 filesystem

Serve static web-app files

get

Wildcard handler that maps any GET request to a file on the ESP32's VFS filesystem (SPIFFS/LittleFS). Requests to / are redirected to /index.html. Supported MIME types: text/html, application/javascript, text/css, image/png, image/x-icon, text/xml (SVG).

Path parameters
pathstringRequired

Relative path to the static file, e.g. index.html, app.js, style.css. A bare / serves index.html.

Responses
chevron-right
200

File contents with appropriate Content-Type header

stringOptional
get
/{path}

Last updated