2017-02-08 20:52:37 -05:00
|
|
|
const express = require('express')
|
|
|
|
const router = express.Router()
|
2017-07-06 00:10:41 -04:00
|
|
|
|
2018-02-11 00:20:17 -05:00
|
|
|
/**
|
|
|
|
* Create/Edit document
|
|
|
|
*/
|
|
|
|
router.get('/e/*', (req, res, next) => {
|
|
|
|
res.render('main/editor')
|
|
|
|
})
|
|
|
|
|
2018-02-28 00:54:09 -05:00
|
|
|
/**
|
|
|
|
* Administration
|
|
|
|
*/
|
|
|
|
router.get(['/a', '/a/*'], (req, res, next) => {
|
|
|
|
res.render('main/admin')
|
|
|
|
})
|
|
|
|
|
2018-05-20 23:27:06 -04:00
|
|
|
/**
|
|
|
|
* Profile
|
|
|
|
*/
|
|
|
|
router.get(['/p', '/p/*'], (req, res, next) => {
|
|
|
|
res.render('main/profile')
|
|
|
|
})
|
|
|
|
|
2016-08-16 23:56:08 -04:00
|
|
|
/**
|
2016-08-29 01:21:35 -04:00
|
|
|
* View document
|
2016-08-16 23:56:08 -04:00
|
|
|
*/
|
2016-08-27 01:04:08 -04:00
|
|
|
router.get('/*', (req, res, next) => {
|
2018-02-04 00:53:13 -05:00
|
|
|
res.render('main/welcome')
|
2017-10-09 21:43:43 -04:00
|
|
|
})
|
|
|
|
|
2017-02-08 20:52:37 -05:00
|
|
|
module.exports = router
|