jczic / MicroWebSrv

A micro HTTP Web server that supports WebSockets, html/python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32)
https://github.com/jczic/MicroWebSrv
MIT License
645 stars 116 forks source link

How to serve static files from LittleFS ? #77

Open guestisp opened 2 years ago

guestisp commented 2 years ago

Any guide on how to serve static files directly from a LittleFS partition like with ESPAsyncWebServer ?

jczic commented 2 years ago

Hello @guestisp, you can use route handlers. See help to add a route.