feature: Barcode/QR Cover Sheet System
This commit is contained in:
@@ -174,4 +174,13 @@ export async function uploadFile<T>(
|
||||
return response.data
|
||||
}
|
||||
|
||||
/** POST JSON and receive a binary response (e.g. cover sheet PDF). */
|
||||
export async function postBlob(url: string, data?: unknown): Promise<Blob> {
|
||||
const response = await apiClient.post(url, data, {
|
||||
responseType: 'blob',
|
||||
timeout: 60000,
|
||||
})
|
||||
return response.data as Blob
|
||||
}
|
||||
|
||||
export default apiClient
|
||||
Reference in New Issue
Block a user