diff options
author | David Mehren | 2019-10-27 14:27:15 +0100 |
---|---|---|
committer | David Mehren | 2019-10-27 14:27:15 +0100 |
commit | afb317b55155eed2cfcad0fee5aba2107dc0b106 (patch) | |
tree | b4f44e76166739ac063a76c27d61fb9fa7156caa /lib/web/note/router.js | |
parent | 9d938c334a5a058e243327c65e15fd6fc56c9403 (diff) |
Move slide actions to own file
Signed-off-by: David Mehren <dmehren1@gmail.com>
Diffstat (limited to 'lib/web/note/router.js')
-rw-r--r-- | lib/web/note/router.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/web/note/router.js b/lib/web/note/router.js index e23b7f64..2a6bf2aa 100644 --- a/lib/web/note/router.js +++ b/lib/web/note/router.js @@ -9,6 +9,7 @@ const { markdownParser } = require('../utils') const router = module.exports = Router() const noteActions = require('./actions') +const slide = require('./slide') // get new note router.get('/new', response.postNote) @@ -21,9 +22,9 @@ router.get('/s/:shortid', response.showPublishNote) // publish note actions router.get('/s/:shortid/:action', response.publishNoteActions) // get publish slide -router.get('/p/:shortid', response.showPublishSlide) +router.get('/p/:shortid', slide.showPublishSlide) // publish slide actions -router.get('/p/:shortid/:action', response.publishSlideActions) +router.get('/p/:shortid/:action', slide.publishSlideActions) // get note by id router.get('/:noteId', response.showNote) // note actions |