2018-08-16 16:07:12 +00:00
|
|
|
/* global window */
|
2018-07-27 13:11:46 +00:00
|
|
|
|
2018-08-15 19:29:29 +00:00
|
|
|
window.MAXFILESIZE = 1024 * 1024 * 1024 * 2;
|
2018-07-27 13:11:46 +00:00
|
|
|
|
2018-08-16 16:07:12 +00:00
|
|
|
const choo = require('choo');
|
|
|
|
const app = choo();
|
2018-07-27 13:11:46 +00:00
|
|
|
|
2018-08-16 16:07:12 +00:00
|
|
|
app.use(require('./stores/state').default);
|
|
|
|
app.use(require('../app/fileManager').default);
|
|
|
|
app.use(require('./stores/intents').default);
|
|
|
|
app.route('/', require('./pages/home').default);
|
|
|
|
app.route('/upload', require('./pages/upload').default);
|
|
|
|
app.route('/share/:id', require('./pages/share').default);
|
|
|
|
app.mount('body');
|