Moved to S3
This commit is contained in:
@@ -31,4 +31,12 @@ export const assignmentsApi = {
|
||||
const response = await client.get<ReturnedAssignment[]>(`/marathons/${marathonId}/returned-assignments`)
|
||||
return response.data
|
||||
},
|
||||
|
||||
// Get proof image as blob URL
|
||||
getProofImageUrl: async (assignmentId: number): Promise<string> => {
|
||||
const response = await client.get(`/assignments/${assignmentId}/proof-image`, {
|
||||
responseType: 'blob',
|
||||
})
|
||||
return URL.createObjectURL(response.data)
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user