Make cleanup_logs payload optional; fix duplicate Optional import
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user