mirror of https://github.com/status-im/codimd.git
Add download action to published notes
Signed-off-by: Alex Garcia <alexsebastian.garcia@gmail.com>
This commit is contained in:
parent
152dfc2323
commit
5b789025f3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue