v2 AST router (#2133)

* Update some tests

* Update some tests

* Resolve #2122 route decorator returning tuple

* Use rc sanic-routing version

* Update unit tests to <:str>
This commit is contained in:
Adam Hopkins
2021-06-21 15:10:26 +03:00
committed by GitHub
parent 7c180376d6
commit 108a4a99c7
7 changed files with 26 additions and 19 deletions

View File

@@ -160,7 +160,9 @@ class RouteMixin:
if apply:
self._apply_route(route)
return route, handler
if static:
return route, handler
return handler
return decorator