mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
Move slide actions to own file
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
9d938c334a
commit
afb317b551
4 changed files with 87 additions and 85 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue