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.

18 lines
294 B

  1. const express = require('express')
  2. const router = express.Router()
  3. /**
  4. * Create/Edit document
  5. */
  6. router.get('/e/*', (req, res, next) => {
  7. res.render('main/editor')
  8. })
  9. /**
  10. * View document
  11. */
  12. router.get('/*', (req, res, next) => {
  13. res.render('main/welcome')
  14. })
  15. module.exports = router