-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PicoWireless: ppwhttp add wildcard routes
This slightly reckless extension to ppwhttp adds support for wildcard routes, eg: /get_led/<int:index> Which will serve URLs in the form: /get_led/10 /get_led/22 etc. The wildcard includes <type:key>, attempting to match the behaviour of Flask. Only type "int" is supported currently. /get_led/<index> - would set data["index"] to a string /get_led/<int:index> - would attempt to parse the URL part to an int, and would not serve eg: /get_led/hi See plasma_ws2812_http.py for example usage.
- Loading branch information
Showing
2 changed files
with
99 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters