async fn redirect_claimed_file(
file_upload_id: Path<Uuid>,
query: Query<DownloadClaimQuery>,
pool: Data<PgPool>,
file_store: Data<dyn FileStore>,
jwt_key: Data<JwtKey>,
) -> ControllerResult<HttpResponse>Expand description
GET /api/v0/files/claimed/:file_upload_id?download-claim=:jwt
Redirects to one host-stored file, authorized by a claim naming that file.
Used by exercise services grading a file-typed answer: the claim, not a session, is the authorization, and it names a single file so a service cannot reach any other one.