Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. (function (window) {
  2.  
  3. window.__env = window.__env || {};
  4.  
  5. // API url
  6. window.__env.baseUrl = 'http://localhost:8080';
  7.  
  8. // Base url
  9. window.__env.middleware = '/api/v1';
  10.  
  11. // Whether or not to enable debug mode
  12. // Setting this to false will disable console output
  13. window.__env.enableDebug = true;
  14. }(this));
  15.  
  16. var axiosApi = axios.create({
  17.  
  18. baseURL: config.host,
  19.  
  20. headers: {
  21.  
  22. // "authorization": "Basic dXNlckBjbG9uZWN0LmNvbTpQYXNzQDEyMw==",
  23. "content-type": "application/json"
  24. },
  25. // withCredentials: true,
  26. auth: {
  27. username: config.user,
  28. password: config.password
  29. }
  30. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement