diff options
author | Cheng-Han, Wu | 2016-05-15 09:56:15 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-05-15 09:56:15 +0800 |
commit | a816420302b2c38893ab719e2a52c4c4b4ba7b50 (patch) | |
tree | 9db9e784a1b0aa996236a21ebad277f60f38d3ca /lib/response.js | |
parent | 4aa4e3eacc36ae54c49ac94cf40594f33c4d9b1d (diff) | |
parent | 217e683422418cc8e4d9618028864edf3e0c346d (diff) |
Merge branch 'janniklorenz-master'
Diffstat (limited to '')
-rw-r--r-- | lib/response.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/response.js b/lib/response.js index 7a75e234..9d75561a 100644 --- a/lib/response.js +++ b/lib/response.js @@ -48,7 +48,7 @@ var response = { showNote: showNote, showPublishNote: showPublishNote, showPublishSlide: showPublishSlide, - showIndex: showIndex, + showIndex: showIndex, noteActions: noteActions, publishNoteActions: publishNoteActions, githubActions: githubActions @@ -72,7 +72,8 @@ function responseError(res, code, detail, msg) { code: code, detail: detail, msg: msg, - useCDN: config.usecdn + useCDN: config.usecdn, + googleDrive: config.googleDrive, }); res.write(content); res.end(); @@ -95,6 +96,7 @@ function showIndex(req, res, next) { twitter: config.twitter, github: config.github, dropbox: config.dropbox, + googleDrive: config.googleDrive, }); res.write(content); res.end(); @@ -125,6 +127,7 @@ function responseHackMD(res, note) { twitter: config.twitter, github: config.github, dropbox: config.dropbox, + googleDrive: config.googleDrive, }); var buf = html; res.writeHead(200, { @@ -355,7 +358,7 @@ function publishNoteActions(req, res, next) { res.redirect(config.serverurl + '/' + (note.alias ? note.alias : LZString.compressToBase64(note.id))); break; default: - res.redirect(config.serverurl + '/s/' + note.shortid); + res.redirect(config.serverurl + '/s/' + note.shortid); break; } }); @@ -370,7 +373,7 @@ function githubActions(req, res, next) { githubActionGist(req, res, note); break; default: - res.redirect(config.serverurl + '/' + noteId); + res.redirect(config.serverurl + '/' + noteId); break; } }); @@ -470,4 +473,4 @@ var render = function (res, title, markdown) { })); }; -module.exports = response;
\ No newline at end of file +module.exports = response; |