diff --git a/app/api.py b/app/api.py index c572c02c..302eb976 100644 --- a/app/api.py +++ b/app/api.py @@ -207,7 +207,7 @@ def get_user_proofs( return crud.get_user_proofs(db, user=current_user) -@app.get("/locations/{location_id}") +@app.get("/locations/{location_id}", response_model=schemas.LocationBase) async def get_location(location_id: int, db: Session = Depends(get_db)): db_location = crud.get_location_by_id(db, id=location_id) if not db_location: