diff --git a/gdrive/export_api.py b/gdrive/export_api.py index 68b84c1..4de53f6 100644 --- a/gdrive/export_api.py +++ b/gdrive/export_api.py @@ -201,6 +201,13 @@ class ResourceModel(BaseModel): resourceId: str +@router.post("/export/directories") +async def get_directories(request: ResourceModel): + return responses.JSONResponse( + status_code=202, content=drive_client.get_files_in_folder(id=request.resourceId) + ) + + @router.post("/export/resource") async def export_resource(request: ResourceModel): return responses.Response(