test
This commit is contained in:
parent
d069a74a3c
commit
826f67f254
@ -3,7 +3,7 @@ const ACCESS = 'drive_access', REFRESH = 'drive_refresh'
|
||||
// Single origin for JSON, previews, videos, and token renewal.
|
||||
export const api = axios.create({
|
||||
baseURL: import.meta.env?.PROD ? '/api' : `http://${window.location.hostname}:1029/api`,
|
||||
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
||||
headers: { Accept: 'application/json' },
|
||||
});
|
||||
const raw = axios.create({baseURL:'/api', headers:{Accept:'application/json'}})
|
||||
export const savedToken = () => sessionStorage.getItem(ACCESS)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user