summaryrefslogtreecommitdiff
path: root/lib/web/auth
diff options
context:
space:
mode:
authorMax Wu2017-05-17 02:42:44 +0800
committerGitHub2017-05-17 02:42:44 +0800
commit0a6793747cf1f40467bcf3e562d358173fffcad1 (patch)
treec95c6c0c8a955f4a28f19dab68c89a502230178a /lib/web/auth
parenteacbb99575d6aae8bdc3a7da9e3fb6df48819c71 (diff)
fix: export to gist occurred 404 not found
Diffstat (limited to 'lib/web/auth')
-rw-r--r--lib/web/auth/github/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/web/auth/github/index.js b/lib/web/auth/github/index.js
index 2a26669c..a72ad527 100644
--- a/lib/web/auth/github/index.js
+++ b/lib/web/auth/github/index.js
@@ -4,6 +4,7 @@ const Router = require('express').Router
const passport = require('passport')
const GithubStrategy = require('passport-github').Strategy
const config = require('../../../config')
+const response = require('../../../response')
const {setReturnToFromReferer, passportGeneralCallback} = require('../utils')
let githubAuth = module.exports = Router()
@@ -26,3 +27,6 @@ githubAuth.get('/auth/github/callback',
failureRedirect: config.serverurl + '/'
})
)
+
+// github callback actions
+githubAuth.get('/auth/github/callback/:noteId/:action', response.githubActions)