Add response model for sondelist

This commit is contained in:
Colin Goutte 2021-09-29 11:48:25 +02:00
parent 97c7ab970c
commit cb5af32b6a
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ def post_sonde(sonde: schemas.SondeBase, db: Session = Depends(get_db)):
return list(sondes.values())
@app.get("/sonde/")
@app.get("/sonde/", response_model=List[schemas.SondeBase])
def list_sonde():
return [x for x in sondes.values()]