Skip to content

Commit

Permalink
Export directories (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-moore-97 authored May 24, 2024
1 parent 37dd149 commit 405212d
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 405212d

Please sign in to comment.