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

Prevent instance from using WebRoutes #103

Open quintesse opened 4 months ago

quintesse commented 4 months ago

Perhaps there is already a way to do this but reading the docs I couldn't find it. I want to be able to create an instance of MicroWebSrv2 that will not pick up on any @WebRoutes but will only use routes that I add manually using RegisterRoute(). But I still want to be able to use @WebRoutes for another instance I'll be running.