Merge remote-tracking branch 'origin/master'

This commit is contained in:
MEHMETKECECI
2026-02-14 10:23:57 +03:00
parent 78f183c9ee
commit 563bc0a0b6
8 changed files with 112 additions and 62 deletions
-21
View File
@@ -1,21 +0,0 @@
import { boot } from 'quasar/wrappers'
import axios from 'axios'
export const api = axios.create({
baseURL: 'http://localhost:8080/api',
timeout: 180000,
withCredentials: true // refresh cookie kullanıyorsan kalsın
})
export default boot(() => {
api.interceptors.request.use((config) => {
const token = localStorage.getItem('token') // ✅ senin authStore keyin
if (token) {
config.headers = config.headers || {}
config.headers.Authorization = `Bearer ${token}`
}
return config
})
})