From 8d29d74b02fb07be8efaae002fca9b9033c536f0 Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Wed, 4 Sep 2019 12:28:44 +0200 Subject: Added endpoint for note-creation with given alias Signed-off-by: Erik Michelson --- lib/web/noteRouter.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/web') 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 -- cgit v1.2.3