summaryrefslogtreecommitdiff
path: root/lib/web/note/router.js
diff options
context:
space:
mode:
authorDavid Mehren2019-10-27 15:22:14 +0100
committerDavid Mehren2019-10-27 15:23:38 +0100
commit2bc4233ba80346e60ed4840714a9aa347ccdb361 (patch)
tree1be1516143a0f9c0fe0104f1ca5b9cc209f7f8e7 /lib/web/note/router.js
parentdee62ce571cc3e33f60499e3ed9cfa4cc5c2f0da (diff)
Move showPublishNote and publishNoteActions to note controller
Signed-off-by: David Mehren <dmehren1@gmail.com>
Diffstat (limited to 'lib/web/note/router.js')
-rw-r--r--lib/web/note/router.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/web/note/router.js b/lib/web/note/router.js
index e4f867b2..cf6fdf43 100644
--- a/lib/web/note/router.js
+++ b/lib/web/note/router.js
@@ -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