🎨 Move prefix
and tags
to routers (#1439)
This commit is contained in:
@@ -7,7 +7,7 @@ from sqlmodel import func, select
|
||||
from app.api.deps import CurrentUser, SessionDep
|
||||
from app.models import Item, ItemCreate, ItemPublic, ItemsPublic, ItemUpdate, Message
|
||||
|
||||
router = APIRouter()
|
||||
router = APIRouter(prefix="/items", tags=["items"])
|
||||
|
||||
|
||||
@router.get("/", response_model=ItemsPublic)
|
||||
|
Reference in New Issue
Block a user