initial commit

This commit is contained in:
2026-02-24 21:24:16 +06:00
commit aa35aaa8ce
46 changed files with 6906 additions and 0 deletions

View File

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