HTTP - Axios integrated
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
import Backbone from 'backbone';
|
||||
import TestView from './view';
|
||||
import _ from 'underscore';
|
||||
import Http from './http';
|
||||
|
||||
Backbone.history.start();
|
||||
|
||||
class Index {
|
||||
constructor() {
|
||||
new TestView();
|
||||
Http.config = {
|
||||
baseURL: 'http://demo1393194.mockable.io/'
|
||||
};
|
||||
new TestView(); //MainView
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user