Build [v1.7.0] - GitGuard - Infrastructure Hardening
This commit is contained in:
@@ -75,8 +75,8 @@ export const inventoryApi = {
|
||||
}
|
||||
},
|
||||
|
||||
analyzeLabel: async (formData: FormData) => {
|
||||
const res = await axiosInstance.post('/items/extract-label', formData, {
|
||||
analyzeLabel: async (formData: FormData, mode: string = "item") => {
|
||||
const res = await axiosInstance.post(`/items/extract-label?mode=${mode}`, formData, {
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
});
|
||||
return res.data;
|
||||
|
||||
Reference in New Issue
Block a user