Method
_method_route
(
self,
method: str,
rule: str,
options: dict[str, t.Any],
)
Source from the content-addressed store, hash-verified
| 282 | return None |
| 283 | |
| 284 | def _method_route( |
| 285 | self, |
| 286 | method: str, |
| 287 | rule: str, |
| 288 | options: dict[str, t.Any], |
| 289 | ) -> t.Callable[[T_route], T_route]: |
| 290 | if "methods" in options: |
| 291 | raise TypeError("Use the 'route' decorator to use the 'methods' argument.") |
| 292 | |
| 293 | return self.route(rule, methods=[method], **options) |
| 294 | |
| 295 | @setupmethod |
| 296 | def get(self, rule: str, **options: t.Any) -> t.Callable[[T_route], T_route]: |
Tested by
no test coverage detected