Added endpoint for note-creation with given alias
Signed-off-by: Erik Michelson <erik@liltv.de>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user