fix(ocme): corrected the urls for ocme
This commit is contained in:
@@ -52,7 +52,7 @@ export default function OcmeCycleCount() {
|
|||||||
}
|
}
|
||||||
toast.success(`Cycle count started`);
|
toast.success(`Cycle count started`);
|
||||||
try {
|
try {
|
||||||
const res = await axios.post("/ocme/api/v1/cycleCount", data, {
|
const res = await axios.post("/lst/old/ocme/api/v1/cycleCount", data, {
|
||||||
headers: { Authorization: `Bearer ${token}` },
|
headers: { Authorization: `Bearer ${token}` },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,11 @@ export default defineConfig({
|
|||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
//rewrite: (path) => path.replace(/^\/lst\/d/, "/"),
|
//rewrite: (path) => path.replace(/^\/lst\/d/, "/"),
|
||||||
},
|
},
|
||||||
|
"/ocme": {
|
||||||
|
target: `http://localhost:${Number(process.env.VITE_PORT || 4000)}`,
|
||||||
|
changeOrigin: true,
|
||||||
|
secure: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user