mirror of
https://github.com/kevin-DL/full-stack-fastapi-postgresql.git
synced 2026-01-12 02:05:14 +00:00
* Update CRUD utils to use types better. * Simplify Pydantic model names, from `UserInCreate` to `UserCreate`, etc. * Upgrade packages. * Add new generic "Items" models, crud utils, endpoints, and tests. To facilitate re-using them to create new functionality. As they are simple and generic (not like Users), it's easier to copy-paste and adapt them to each use case. * Update endpoints/*path operations* to simplify code and use new utilities, prefix and tags in `include_router`. * Update testing utils. * Update linting rules, relax vulture to reduce false positives. * Update migrations to include new Items. * Update project README.md with tips about how to start with backend.
10 lines
396 B
Python
10 lines
396 B
Python
from fastapi import APIRouter
|
|
|
|
from app.api.api_v1.endpoints import items, login, users, utils
|
|
|
|
api_router = APIRouter()
|
|
api_router.include_router(login.router, tags=["login"])
|
|
api_router.include_router(users.router, prefix="/users", tags=["users"])
|
|
api_router.include_router(utils.router, prefix="/utils", tags=["utils"])
|
|
api_router.include_router(items.router, prefix="/items", tags=["items"])
|