Explorar o código

modify request method

highing666 %!s(int64=3) %!d(string=hai) anos
pai
achega
b1db79cc5f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/api/routers/space.py

+ 1 - 1
app/api/routers/space.py

@@ -57,7 +57,7 @@ async def read_weight_by_vav(vav_id: str, db: Session = Depends(get_db)):
     return db_weights
 
 
-@router.patch('/weight/{space_id}/{vav_id}', response_model=SpaceWeight)
+@router.put('/weight/{space_id}/{vav_id}', response_model=SpaceWeight)
 async def update_weight_by_space(
         space_id: str,
         vav_id: str,