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

Add RouteHandler at runtime #68

Open NilsBe opened 4 years ago

NilsBe commented 4 years ago

Is it possible to add a RouteHandler during runtime?

Thank you Nils

jczic commented 4 years ago

Hi, It's not possible with MicroWebSrv but it's ok with MicroWebSrv2 : https://github.com/jczic/MicroWebSrv2/#route-func <- (Github repository: https://github.com/jczic/MicroWebSrv2) You should really use the new version :) Thank you for your interest and do not hesitate :)