- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for include_router (0.16 sec)
-
fastapi/routing.py
users_router = APIRouter() @users_router.get("/users/") def read_users(): return [{"name": "Rick"}, {"name": "Morty"}] internal_router.include_router(users_router) app.include_router(internal_router) ``` """ if prefix: assert prefix.startswith("/"), "A path prefix must start with '/'" assert not prefix.endswith(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:44:57 UTC 2024 - 172.1K bytes - Viewed (0) -
fastapi/applications.py
```python from fastapi import FastAPI from .users import users_router app = FastAPI() app.include_router(users_router) ``` """ self.router.include_router( router, prefix=prefix, tags=tags, dependencies=dependencies, responses=responses,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 17 04:52:31 UTC 2024 - 172.2K bytes - Viewed (0)