Skip to content

Commit

Permalink
Export directories
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-moore-97 committed May 18, 2024
1 parent 37dd149 commit 9f55b93
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gdrive/export_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9f55b93

Please sign in to comment.