fix: use plain axios for getUsers (public endpoint, avoid JWT interceptor)

This commit is contained in:
Daniel Bedeleanu
2026-04-11 14:39:34 +03:00
parent c949bcd211
commit cf528ac161

View File

@@ -108,7 +108,8 @@ export const inventoryApi = {
// Users
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;
},