We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4dc768 commit 978a0c9Copy full SHA for 978a0c9
adafruit_httpserver/route.py
@@ -135,14 +135,14 @@ def as_route(
135
136
Example::
137
138
- # Default method is GET
+ # Converts a function into a Route object
139
@as_route("/example")
140
def some_func(request):
141
...
142
143
some_func # Route(path="/example", methods={"GET"}, handler=<function some_func at 0x...>)
144
145
- # If a route in another file, you can import it and register it to the server
+ # If a route is in another file, you can import it and register it to the server
146
147
from .routes import some_func
148
0 commit comments