fix: export to gist occurred 404 not found

This commit is contained in:
Max Wu 2017-05-17 02:42:44 +08:00 committed by GitHub
parent eacbb99575
commit 0a6793747c

View file

@ -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)