test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-05-03 13:48:49 +10:00
parent 8f86c51d19
commit 0577f4d65c
2 changed files with 7 additions and 4 deletions

View File

@@ -50,8 +50,8 @@ def setup_routes(app: FastAPI) -> None:
return {"status": "success", "message": "Источник добавлен", "data": result}
@app.get("/all_sources", summary="Метод получения всех источников")
async def get_all_sources():
return wp.get_all_sources()
async def get_all_sources(category: str = "all"):
return wp.get_all_sources(category)
@app.delete("/delete_sources", summary="Метод удаления источника")
async def delete_sources(url: str):