-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
32 lines (26 loc) · 936 Bytes
/
index.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
28
29
30
31
32
var css = require('sheetify')
var choo = require('choo')
css('ress')
css('./assets/css/css.js')
css('./assets/css/base.css')
var app = choo({
hash: false
})
if (process.env.NODE_ENV !== 'production') {
app.use(require('choo-devtools')())
}
app.use(require('./stores/slides'))
app.use(require('./stores/video'))
app.route('/', require('./views/main'))
app.route('/livestream', require('./views/livestream'))
app.route('/archive', require('./views/archive'))
app.route('/feedback', require('./views/feedback'))
app.route('/tools', require('./views/tools'))
app.route('/intro', require('./views/intro'))
app.route('/hypertext', require('./views/hypertext'))
app.route('/style', require('./views/style'))
app.route('/script-i', require('./views/script-i'))
app.route('/script-iii', require('./views/script-iii'))
app.route('/404', require('./views/404'))
app.route('/*', require('./views/404'))
module.exports = app.mount('body')