summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-11-12 22:11:44 +0100
committerGitHub2018-11-12 22:11:44 +0100
commit54d3d930cf39c2a3bec422d858cbac20ad8118eb (patch)
tree55ffe55cbf7818159cb51dd5c2e5c05c2713ab35
parent8ad3fdc3cad106fd84abcb93ffc20990cfba5cb9 (diff)
parentfcf08f89c3fe5f7708db7748e209a13b30c1e121 (diff)
Merge pull request #1027 from asg017/master
Add download action to published notes
-rw-r--r--lib/response.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/response.js b/lib/response.js
index 3cbd3203..671aa120 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -423,6 +423,9 @@ function publishNoteActions (req, res, next) {
findNote(req, res, function (note) {
var action = req.params.action
switch (action) {
+ case 'download':
+ actionDownload(req, res, note)
+ break
case 'edit':
res.redirect(config.serverURL + '/' + (note.alias ? note.alias : models.Note.encodeNoteId(note.id)))
break