Merge pull request 'base url' (#16) from efril into main

Reviewed-on: https://gits.altru.id/ferdiansyah/pos-dashboard-v2/pulls/16
This commit is contained in:
aefril 2025-09-21 13:38:26 +00:00
commit bd14adde23

View File

@ -5,9 +5,9 @@ const getToken = () => {
return localStorage.getItem('authToken') return localStorage.getItem('authToken')
} }
// baseURL: 'https://api-pos.apskel.id/api/v1',
export const api = axios.create({ export const api = axios.create({
baseURL: 'http://127.0.0.1:4000/api/v1', baseURL: 'https://api-pos.apskel.id/api/v1',
// baseURL: 'http://127.0.0.1:4000/api/v1',
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}, },