const express = require('express'); const router = new express.Router(); router.get('/:name', require('./document')); router.get('/:name/preview', require('./preview')); module.exports = router;