Removed constants.js

This commit is contained in:
Jori Lallo
2017-04-29 14:20:41 -07:00
parent 2c36aa613d
commit 31d05839ba
2 changed files with 2 additions and 11 deletions

View File

@ -1,8 +0,0 @@
let constants;
constants = {
API_USER_AGENT: 'Atlas',
API_BASE_URL: '/api',
};
export default constants;

View File

@ -1,12 +1,11 @@
import _ from 'lodash';
import { browserHistory } from 'react-router';
import constants from '../constants';
import stores from 'stores';
class ApiClient {
constructor(options = {}) {
this.baseUrl = options.baseUrl || constants.API_BASE_URL;
this.userAgent = options.userAgent || constants.API_USER_AGENT;
this.baseUrl = options.baseUrl || '/api';
this.userAgent = 'AtlasFrontend';
}
fetch = (path, method, data, options = {}) => {