Browse Source

modify request method

highing666 3 years ago
parent
commit
b1db79cc5f
1 changed files with 1 additions and 1 deletions
  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,