-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
27 lines (22 loc) · 731 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* Copyright 2016, Sumit Rai
* Copyrights licensed under the New MIT License. See the accompanying LICENSE file for terms.
*/
import Fluxible from 'fluxible';
import Application from './components/Application';
import ApplicationStore from './stores/ApplicationStore';
import RouteStore from './stores/RouteStore';
import fetchrPlugin from 'fluxible-plugin-fetchr';
// create new fluxible instance
const app = new Fluxible({
component: Application
});
app.plug(fetchrPlugin({
xhrPath: '/api'
}));
// register stores
app.registerStore(RouteStore);
app.registerStore(ApplicationStore);
app.registerStore(require('./stores/IssueListStore'));
app.registerStore(require('./stores/IssueStore'));
module.exports = app;