Skip to content

Commit 54d3d93

Browse files
authored
Merge pull request #1027 from asg017/master
Add download action to published notes
2 parents 8ad3fdc + fcf08f8 commit 54d3d93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/response.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,9 @@ function publishNoteActions (req, res, next) {
423423
findNote(req, res, function (note) {
424424
var action = req.params.action
425425
switch (action) {
426+
case 'download':
427+
actionDownload(req, res, note)
428+
break
426429
case 'edit':
427430
res.redirect(config.serverURL + '/' + (note.alias ? note.alias : models.Note.encodeNoteId(note.id)))
428431
break

0 commit comments

Comments
 (0)