git ssb

0+

Zach! / music-visions



Tree: 101053a1f48bbe8fb2e7338985d721188ba72e3e

Files: 101053a1f48bbe8fb2e7338985d721188ba72e3e / index.js

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

Built with git-ssb-web