wikijs-fork/server/controllers/common.js
2018-02-28 00:54:09 -05:00

26 lines
400 B
JavaScript

const express = require('express')
const router = express.Router()
/**
* Create/Edit document
*/
router.get('/e/*', (req, res, next) => {
res.render('main/editor')
})
/**
* Administration
*/
router.get(['/a', '/a/*'], (req, res, next) => {
res.render('main/admin')
})
/**
* View document
*/
router.get('/*', (req, res, next) => {
res.render('main/welcome')
})
module.exports = router