add: implementar login/registro

This commit is contained in:
Alexis
2026-04-06 10:20:27 +02:00
parent e96af43990
commit 22ed6c107e
8 changed files with 257 additions and 406 deletions
+7
View File
@@ -9,5 +9,12 @@ const api = Axios.create({
}
});
api.interceptors.request.use((config) => {
const token = localStorage.getItem('token');
if (token) {
config.headers.Authorization = `Bearer ${token}`;
}
return config;
});
export default api;