You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wiki/server/controllers/common.js

19 lines
294 B

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