Pass unquote thru add_route (#2639)

This commit is contained in:
Adam Hopkins
2022-12-21 10:45:23 +02:00
committed by GitHub
parent 2abe66b670
commit 029f564032
2 changed files with 17 additions and 0 deletions

View File

@@ -218,6 +218,7 @@ class RouteMixin(metaclass=SanicMeta):
stream: bool = False,
version_prefix: str = "/v",
error_format: Optional[str] = None,
unquote: bool = False,
**ctx_kwargs: Any,
) -> RouteHandler:
"""A helper method to register class instance or
@@ -264,6 +265,7 @@ class RouteMixin(metaclass=SanicMeta):
name=name,
version_prefix=version_prefix,
error_format=error_format,
unquote=unquote,
**ctx_kwargs,
)(handler)
return handler