mirror of
https://github.com/fergalmoran/bitchmin.git
synced 2026-02-15 04:15:18 +00:00
20 lines
575 B
TypeScript
20 lines
575 B
TypeScript
import * as qs from 'qs';
|
|
export const API_BASE = process.env.VUE_APP_API_SERVER;
|
|
|
|
export const apiConfig = {
|
|
returnRejectedPromiseOnError: true,
|
|
withCredentials: true,
|
|
credentials: 'same-origin',
|
|
timeout: 30000,
|
|
baseURL: API_BASE,
|
|
headers: {
|
|
common: {
|
|
'Cache-Control': 'no-cache, no-store, must-revalidate',
|
|
Pragma: 'no-cache',
|
|
'Content-Type': 'application/json',
|
|
Accept: 'application/json',
|
|
},
|
|
},
|
|
paramsSerializer: (params: any) => qs.stringify(params, { indices: false }),
|
|
};
|