fix: Optional OCR-Assisted Draft Pre-Fill
This commit is contained in:
@@ -183,4 +183,10 @@ export async function postBlob(url: string, data?: unknown): Promise<Blob> {
|
||||
return response.data as Blob
|
||||
}
|
||||
|
||||
/** GET and receive a binary response (e.g. scanned document). */
|
||||
export async function getBlob(url: string): Promise<Blob> {
|
||||
const response = await apiClient.get(url, { responseType: 'blob' })
|
||||
return response.data as Blob
|
||||
}
|
||||
|
||||
export default apiClient
|
||||
Reference in New Issue
Block a user