Skip to content

Commit 0a67937

Browse files
authored
fix: export to gist occurred 404 not found
1 parent eacbb99 commit 0a67937

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/web/auth/github/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const Router = require('express').Router
44
const passport = require('passport')
55
const GithubStrategy = require('passport-github').Strategy
66
const config = require('../../../config')
7+
const response = require('../../../response')
78
const {setReturnToFromReferer, passportGeneralCallback} = require('../utils')
89

910
let githubAuth = module.exports = Router()
@@ -26,3 +27,6 @@ githubAuth.get('/auth/github/callback',
2627
failureRedirect: config.serverurl + '/'
2728
})
2829
)
30+
31+
// github callback actions
32+
githubAuth.get('/auth/github/callback/:noteId/:action', response.githubActions)

0 commit comments

Comments
 (0)