Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function (window) {
- window.__env = window.__env || {};
- // API url
- window.__env.baseUrl = 'http://localhost:8080';
- // Base url
- window.__env.middleware = '/api/v1';
- // Whether or not to enable debug mode
- // Setting this to false will disable console output
- window.__env.enableDebug = true;
- }(this));
- var axiosApi = axios.create({
- baseURL: config.host,
- headers: {
- // "authorization": "Basic dXNlckBjbG9uZWN0LmNvbTpQYXNzQDEyMw==",
- "content-type": "application/json"
- },
- // withCredentials: true,
- auth: {
- username: config.user,
- password: config.password
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement