Skip to content

Commit 5b78902

Browse files
committed
Add download action to published notes
Signed-off-by: Alex Garcia <[email protected]>
1 parent 152dfc2 commit 5b78902

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/response.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,8 @@ function publishNoteActions (req, res, next) {
468468
findNote(req, res, function (note) {
469469
var action = req.params.action
470470
switch (action) {
471+
case 'download':
472+
actionDownload(req, res, note)
471473
case 'edit':
472474
res.redirect(config.serverURL + '/' + (note.alias ? note.alias : models.Note.encodeNoteId(note.id)))
473475
break

0 commit comments

Comments
 (0)