mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
Move showPublishNote and publishNoteActions to note controller
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
dee62ce571
commit
2bc4233ba8
6 changed files with 99 additions and 125 deletions
|
@ -1,9 +1,6 @@
|
|||
'use strict'
|
||||
|
||||
const Router = require('express').Router
|
||||
|
||||
const response = require('../../response')
|
||||
|
||||
const { markdownParser } = require('../utils')
|
||||
|
||||
const router = module.exports = Router()
|
||||
|
@ -18,9 +15,9 @@ router.post('/new', markdownParser, noteController.createFromPOST)
|
|||
// post new note with content and alias
|
||||
router.post('/new/:noteId', markdownParser, noteController.createFromPOST)
|
||||
// get publish note
|
||||
router.get('/s/:shortid', response.showPublishNote)
|
||||
router.get('/s/:shortid', noteController.showPublishNote)
|
||||
// publish note actions
|
||||
router.get('/s/:shortid/:action', response.publishNoteActions)
|
||||
router.get('/s/:shortid/:action', noteController.publishNoteActions)
|
||||
// get publish slide
|
||||
router.get('/p/:shortid', slide.showPublishSlide)
|
||||
// publish slide actions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue