diff options
Diffstat (limited to 'lib/web')
-rw-r--r-- | lib/web/noteRouter.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/web/noteRouter.js b/lib/web/noteRouter.js index bac2cf88..58e93019 100644 --- a/lib/web/noteRouter.js +++ b/lib/web/noteRouter.js @@ -9,9 +9,11 @@ const { markdownParser } = require('./utils') const noteRouter = module.exports = Router() // get new note -noteRouter.get('/new', response.newNote) +noteRouter.get('/new', response.postNote) // post new note with content -noteRouter.post('/new', markdownParser, response.newNote) +noteRouter.post('/new', markdownParser, response.postNote) +// post new note with content and alias +noteRouter.post('/new/:noteId', markdownParser, response.postNote) // get publish note noteRouter.get('/s/:shortid', response.showPublishNote) // publish note actions |