Files
eamco_printer/app/routers/command.py
2024-03-26 13:17:04 -04:00

16 lines
353 B
Python

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}