picoweb
picoweb copied to clipboard
Add method-filter to routes, for separate use.
Small update to separate functions for different methods.
Use like: @app.route('/', methods=['GET']) def get_func(): pass
@app.route('/', methods=['POST']) def post_func(): pass
Or (need check): ROUTES = [ # URI string matches... ("/", index), ('/init',putInit, {"methods": ['PUT']}) }