Skip to content

Commit

Permalink
(feat) add path
Browse files Browse the repository at this point in the history
  • Loading branch information
cardosofede committed Nov 14, 2024
1 parent e62b627 commit fae1357
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routers/manage_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async def delete_controller_config(config_name: str):
raise HTTPException(status_code=404, detail=str(e))


@router.post("delete-script-config", status_code=status.HTTP_200_OK)
@router.post("/delete-script-config", status_code=status.HTTP_200_OK)
async def delete_script_config(config_name: str):
try:
file_system.delete_file('conf/scripts', config_name)
Expand All @@ -170,7 +170,7 @@ async def delete_script_config(config_name: str):
raise HTTPException(status_code=404, detail=str(e))


@router.post("delete-all-controller-configs", status_code=status.HTTP_200_OK)
@router.post("/delete-all-controller-configs", status_code=status.HTTP_200_OK)
async def delete_all_controller_configs():
try:
for file in file_system.list_files('conf/controllers'):
Expand All @@ -180,7 +180,7 @@ async def delete_all_controller_configs():
raise HTTPException(status_code=404, detail=str(e))


@router.post("delete-all-script-configs", status_code=status.HTTP_200_OK)
@router.post("/delete-all-script-configs", status_code=status.HTTP_200_OK)
async def delete_all_script_configs():
try:
for file in file_system.list_files('conf/scripts'):
Expand Down

0 comments on commit fae1357

Please sign in to comment.