forked from dat-ecosystem-archive/dat.foundation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
24 lines (18 loc) · 703 Bytes
/
index.js
File metadata and controls
24 lines (18 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const choo = require('choo')
const css = require('sheetify')
css('tachyons')
css('dat-colors')
css('./client/css/app.css')
css('./client/css/fonts.css') // can't delete without getting bankai error?
const app = choo({hash:false})
app.use(require('./client/plugins/scroll-top'))
if (process.env.ANALYTICS) app.use(require('./client/plugins/analytics'))
// if (process.env.NODE_ENV !== 'production') {
app.use(require('choo-devtools')())
// }
app.route('/', require('./client/pages/home'))
app.route('/about', require('./client/pages/about'))
app.route('/about#*', require('./client/pages/about'))
// error route
app.route('*', require('./client/pages/notfound'))
module.exports = app.mount('body')