feat & Bugfix: layout en rename (year)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user