Skip to content

Commit

Permalink
pre signed url endpoint made authenticated
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry committed Jul 24, 2024
1 parent 72be331 commit a656636
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/app/projects/project_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ async def preview_split_by_square(


@router.post("/generate-presigned-url/", tags=["Image Upload"])
async def generate_presigned_url(data: project_schemas.PresignedUrlRequest):
async def generate_presigned_url(
data: project_schemas.PresignedUrlRequest, user: AuthUser = Depends(login_required)
):
"""
Generate a pre-signed URL for uploading an image to S3 Bucket.
Expand Down

0 comments on commit a656636

Please sign in to comment.