From 0a6793747cf1f40467bcf3e562d358173fffcad1 Mon Sep 17 00:00:00 2001 From: Max Wu Date: Wed, 17 May 2017 02:42:44 +0800 Subject: fix: export to gist occurred 404 not found --- lib/web/auth/github/index.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/web/auth') 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) -- cgit v1.2.3