Fix one endpoint

This commit is contained in:
Iam54r1n4
2025-02-02 18:41:39 +00:00
parent 03c9320ff5
commit f28b8a66d7
2 changed files with 8 additions and 9 deletions

View File

@ -26,8 +26,8 @@ async def start(body: StartInputBody):
raise HTTPException(status_code=400, detail=f'Error: {str(e)}')
@router.get('/stop', response_model=DetailResponse, summary='Stop Singbox')
async def delete():
@router.delete('/stop', response_model=DetailResponse, summary='Stop Singbox')
async def stop():
"""
Stop the Singbox service.