git ssb

0+

Zach! / music-visions



Tree: dcdd419466873a3da024459b543976e3c28ebf5e

Files: dcdd419466873a3da024459b543976e3c28ebf5e / index.js

565 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

Built with git-ssb-web