summaryrefslogtreecommitdiff
path: root/lib/web
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/web/noteRouter.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/web/noteRouter.js b/lib/web/noteRouter.js
index bac2cf88..78cb69e5 100644
--- a/lib/web/noteRouter.js
+++ b/lib/web/noteRouter.js
@@ -12,6 +12,8 @@ const noteRouter = module.exports = Router()
noteRouter.get('/new', response.newNote)
// post new note with content
noteRouter.post('/new', markdownParser, response.newNote)
+// post new note with content and alias
+noteRouter.post('/new/:alias', markdownParser, response.newNote)
// get publish note
noteRouter.get('/s/:shortid', response.showPublishNote)
// publish note actions