Move showNote to note controller

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2019-10-27 14:59:44 +01:00
parent 181d5646cf
commit dee62ce571
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
3 changed files with 19 additions and 133 deletions

View file

@ -26,7 +26,7 @@ router.get('/p/:shortid', slide.showPublishSlide)
// publish slide actions
router.get('/p/:shortid/:action', slide.publishSlideActions)
// get note by id
router.get('/:noteId', response.showNote)
router.get('/:noteId', noteController.showNote)
// note actions
router.get('/:noteId/:action', noteController.doAction)
// note actions with action id