feat & Bugfix: layout en rename (year)

This commit is contained in:
kodi
2026-03-08 07:41:24 +01:00
parent 6bf753e3b7
commit 06c144d2fc
9 changed files with 181 additions and 20 deletions
+17
View File
@@ -28,3 +28,20 @@ def discover_files(
)
except ValueError as exc:
raise HTTPException(status_code=400, detail=str(exc))
@router.get("/folders")
def discover_folders(
root_id: str = Query(..., min_length=1),
subpath: str = Query(""),
limit: int = Query(500, ge=1, le=2000),
):
service = FileDiscoveryService()
try:
return service.list_folders(
root_id=root_id,
subpath=subpath,
limit=limit,
)
except ValueError as exc:
raise HTTPException(status_code=400, detail=str(exc))