Files: 600dbebbcf63259dc62efc29572bad058dff0f50 / index.js
570 bytesRaw
1 | //Bring in our outdoor modules |
2 | const choo = require('choo') |
3 | const html = require('choo/html') |
4 | |
5 | //Bring in our indoor modules |
6 | const main = require('./views/main') |
7 | const song = require('./views/song') |
8 | const songbook = require('./views/songbook') |
9 | |
10 | //Initialize choo |
11 | const app = choo() |
12 | |
13 | if (process.env.NODE_ENV !== 'production') { |
14 | app.use(require('choo-devtools')()) |
15 | } else { |
16 | app.use(require('choo-service-worker')()) |
17 | } |
18 | |
19 | app.use(require('./stores/songs')) |
20 | |
21 | app.route('/', main) |
22 | app.route('#songbook', songbook) |
23 | app.route('#songbook/:song', song) |
24 | app.mount('div') |
25 | |
26 | |
27 | |
28 | |
29 | |
30 |
Built with git-ssb-web