Shortcut for :meth:`route` with ``methods=["GET"]``. .. versionadded:: 2.0
(self, rule: str, **options: t.Any)
| 294 | |
| 295 | @setupmethod |
| 296 | def get(self, rule: str, **options: t.Any) -> t.Callable[[T_route], T_route]: |
| 297 | """Shortcut for :meth:`route` with ``methods=["GET"]``. |
| 298 | |
| 299 | .. versionadded:: 2.0 |
| 300 | """ |
| 301 | return self._method_route("GET", rule, options) |
| 302 | |
| 303 | @setupmethod |
| 304 | def post(self, rule: str, **options: t.Any) -> t.Callable[[T_route], T_route]: |
no test coverage detected