Fix syntax error in register_routes docs (#1038)

Thanks, @gerrymanoim
pull/1043/head
gerrymanoim 2020-10-21 18:44:16 -04:00 zatwierdzone przez GitHub
rodzic bf82b3d6a6
commit 6e26b05799
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -530,7 +530,7 @@ Return a list of ``(regex, view_function)`` pairs, something like this:
@hookimpl
def register_routes():
return [
(r"^/hello-from/(?P<name>.*)$"), hello_from)
(r"^/hello-from/(?P<name>.*)$", hello_from)
]
The view functions can take a number of different optional arguments. The corresponding argument will be passed to your function depending on its named parameters - a form of dependency injection.