first commit

This commit is contained in:
2024-03-26 13:17:04 -04:00
commit de448a35d1
22 changed files with 156 additions and 0 deletions

16
app/routers/command.py Normal file
View 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}