jczic / MicroWebSrv2

The last Micro Web Server for IoTs (MicroPython) or large servers (CPython), that supports WebSockets, routes, template engine and with really optimized architecture (mem allocations, async I/Os). Ready for ESP32, STM32 on Pyboard, Pycom's chipsets (WiPy, LoPy, ...). Robust, efficient and documented!
https://github.com/jczic/MicroWebSrv2
MIT License
659 stars 97 forks source link

Defining routes disables default route? #90

Open concentrateddon opened 1 year ago

concentrateddon commented 1 year ago

This may be by design; trying to confirm.

If I boot up a minimal MWS2, it serves /index.html just fine. But if I start defining routes, /index.html no longer serves—it just seems to ignore the request. It also doesn't serve / (which should be index.html as well).

Is it intended that, by defining routes, I'm then expected to also define the default route myself?