Skip to content

Commit 978a0c9

Browse files
committed
Minor change in as_route docstring
1 parent d4dc768 commit 978a0c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_httpserver/route.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ def as_route(
135135
136136
Example::
137137
138-
# Default method is GET
138+
# Converts a function into a Route object
139139
@as_route("/example")
140140
def some_func(request):
141141
...
142142
143143
some_func # Route(path="/example", methods={"GET"}, handler=<function some_func at 0x...>)
144144
145-
# If a route in another file, you can import it and register it to the server
145+
# If a route is in another file, you can import it and register it to the server
146146
147147
from .routes import some_func
148148

0 commit comments

Comments
 (0)