diff options
-rw-r--r-- | lib/web/auth/github/index.js | 4 |
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) |