2016-07-10 15:54:11 +00:00
|
|
|
const choo = require('../../')
|
|
|
|
|
|
|
|
|
|
const stopwatch = require('./models/stopwatch')
|
|
|
|
|
const mainView = require('./views/main')
|
|
|
|
|
|
|
|
|
|
const app = choo()
|
|
|
|
|
|
|
|
|
|
app.model(stopwatch)
|
|
|
|
|
|
2016-12-11 19:35:29 +01:00
|
|
|
app.router(['/', mainView])
|
2016-07-10 15:54:11 +00:00
|
|
|
|
|
|
|
|
const tree = app.start()
|
|
|
|
|
document.body.appendChild(tree)
|