Make cleanup_logs payload optional; fix duplicate Optional import

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-06-27 14:43:18 +02:00
parent c6d787c2c7
commit c8f0c6fcb1
2 changed files with 7 additions and 13 deletions

View File

@@ -1,12 +1,3 @@
## Task 8: Download Log File — Endpoint should exist and return log file
**Test Result:** FAIL — `Url: http://127.0.0.1:8765/api/logging/files/aniworld.log/download Expected status: 404 != 200`
**Instructions:**
The `Download Log File` API test expects a `200 OK` from `/api/logging/files/{filename}/download`, but gets `404 Not Found`. The endpoint does not exist or the route is incorrect. Implement or fix the route so it accepts a filename parameter and returns the log file as a binary download.
---
## Task 9: Cleanup Old Logs — Should accept cleanup request
**Test Result:** FAIL — `Url: http://127.0.0.1:8765/api/logging/cleanup Expected status: 422 != 200`