nodemcu-httpserver
nodemcu-httpserver copied to clipboard
Support protecting only certain pages using Basic HTTP Authentication
Right now it's all-or-nothing. I would like to have the ability to only use HTTP Authentication on some pages but not others. I imagine this by having a regular expression that matches the pages to protect in httpserver-conf.lua.
A router would be a nice addition. It maps incomming url's to scripts instead of executing scripts directly. This way you can also control which middleware to run (such settings some hooks voor http basic auth).
that is also related to https://github.com/marcoskirsch/nodemcu-httpserver/issues/81