first commit
This commit is contained in:
16
app/routers/command.py
Normal file
16
app/routers/command.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from fastapi import APIRouter, Depends, HTTPException
|
||||
from app.database import session
|
||||
from app.models.delivery import Delivery
|
||||
|
||||
|
||||
router = APIRouter(
|
||||
prefix="/command",
|
||||
tags=["command"],
|
||||
responses={404: {"description": "Not found"}},
|
||||
)
|
||||
|
||||
|
||||
@router.get("/")
|
||||
async def read_items():
|
||||
x = session.query(Delivery).first()
|
||||
return {"x": x.id}
|
||||
Reference in New Issue
Block a user