set up endpoint to get s3 link