feat: initialize React frontend with minimalistic Matrix theme

This commit is contained in:
2026-04-07 15:05:06 -04:00
parent 697929a127
commit 50e53120df
26 changed files with 4575 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import axios from 'axios';
const api = axios.create({
baseURL: 'http://localhost:8000/api/v1',
});
api.interceptors.request.use((config) => {
const token = localStorage.getItem('token');
if (token) {
config.headers.Authorization = `Bearer ${token}`;
}
return config;
});
export default api;