fix: use plain axios for getUsers (public endpoint, avoid JWT interceptor)
This commit is contained in:
@@ -108,7 +108,8 @@ export const inventoryApi = {
|
|||||||
|
|
||||||
// Users
|
// Users
|
||||||
getUsers: async () => {
|
getUsers: async () => {
|
||||||
const res = await axiosInstance.get('/users/');
|
// [C-01] Public endpoint — use plain axios to avoid JWT interceptor
|
||||||
|
const res = await axios.get(`${getBackendUrl()}/users/`);
|
||||||
return res.data;
|
return res.data;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user