diff options
author | Alex Garcia | 2018-10-27 16:55:14 -0700 |
---|---|---|
committer | Alex Garcia | 2018-10-27 16:55:14 -0700 |
commit | 5b789025f314e4bb154df266b2e6dd148747efa2 (patch) | |
tree | 255768838ef30ffaa52d4f871161e0d9c1db565f | |
parent | 152dfc23230c2575633a0321c855f37fcc50fb96 (diff) |
Add download action to published notes
Signed-off-by: Alex Garcia <alexsebastian.garcia@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | lib/response.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/response.js b/lib/response.js index 4f572e47..3e38fe68 100644 --- a/lib/response.js +++ b/lib/response.js @@ -468,6 +468,8 @@ function publishNoteActions (req, res, next) { findNote(req, res, function (note) { var action = req.params.action switch (action) { + case 'download': + actionDownload(req, res, note) case 'edit': res.redirect(config.serverURL + '/' + (note.alias ? note.alias : models.Note.encodeNoteId(note.id))) break |