chore: small fix
Browse files- Frontend/src/api/api.ts +2 -2
Frontend/src/api/api.ts
CHANGED
|
@@ -9,10 +9,10 @@ API.interceptors.request.use((config) => {
|
|
| 9 |
const token = localStorage.getItem("token");
|
| 10 |
|
| 11 |
if (token) {
|
| 12 |
-
config.headers.Authorization = Bearer ${token}
|
| 13 |
}
|
| 14 |
|
| 15 |
return config;
|
| 16 |
});
|
| 17 |
|
| 18 |
-
export default API;
|
|
|
|
| 9 |
const token = localStorage.getItem("token");
|
| 10 |
|
| 11 |
if (token) {
|
| 12 |
+
config.headers.Authorization = `Bearer ${token}`;
|
| 13 |
}
|
| 14 |
|
| 15 |
return config;
|
| 16 |
});
|
| 17 |
|
| 18 |
+
export default API;
|