async def get_suppliers(db: Session = Depends(get_db)): db_suppliers = crud.get_suppliers(db) return db_suppliers
async def get_suppliers(db: Session = Depends(get_db)): return crud.get_suppliers(db)
async def get_suppliers(db: Session = Depends(get_db)): suppliers = crud.get_suppliers(db) suppliers = [{"SupplierID": supplier.SupplierID, "CompanyName": supplier.CompanyName} for supplier in suppliers] return suppliers