fix: export to gist occurred 404 not found
This commit is contained in:
parent
eacbb99575
commit
0a6793747c
1 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,7 @@ const Router = require('express').Router
|
||||||
const passport = require('passport')
|
const passport = require('passport')
|
||||||
const GithubStrategy = require('passport-github').Strategy
|
const GithubStrategy = require('passport-github').Strategy
|
||||||
const config = require('../../../config')
|
const config = require('../../../config')
|
||||||
|
const response = require('../../../response')
|
||||||
const {setReturnToFromReferer, passportGeneralCallback} = require('../utils')
|
const {setReturnToFromReferer, passportGeneralCallback} = require('../utils')
|
||||||
|
|
||||||
let githubAuth = module.exports = Router()
|
let githubAuth = module.exports = Router()
|
||||||
|
@ -26,3 +27,6 @@ githubAuth.get('/auth/github/callback',
|
||||||
failureRedirect: config.serverurl + '/'
|
failureRedirect: config.serverurl + '/'
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// github callback actions
|
||||||
|
githubAuth.get('/auth/github/callback/:noteId/:action', response.githubActions)
|
||||||
|
|
Loading…
Reference in a new issue