mirror of https://github.com/status-im/codimd.git
refactor(auth.js): Remove base path
This commit is contained in:
parent
d88502e331
commit
a7e3c4d535
|
@ -29,14 +29,14 @@ passport.deserializeUser(function (id, done) {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
if (config.facebook) authRouter.use('/', require('./facebook'))
|
if (config.facebook) authRouter.use(require('./facebook'))
|
||||||
if (config.twitter) authRouter.use('/', require('./twitter'))
|
if (config.twitter) authRouter.use(require('./twitter'))
|
||||||
if (config.github) authRouter.use('/', require('./github'))
|
if (config.github) authRouter.use(require('./github'))
|
||||||
if (config.gitlab) authRouter.use('/', require('./gitlab'))
|
if (config.gitlab) authRouter.use(require('./gitlab'))
|
||||||
if (config.dropbox) authRouter.use('/', require('./dropbox'))
|
if (config.dropbox) authRouter.use(require('./dropbox'))
|
||||||
if (config.google) authRouter.use('/', require('./google'))
|
if (config.google) authRouter.use(require('./google'))
|
||||||
if (config.ldap) authRouter.use('/', require('./ldap'))
|
if (config.ldap) authRouter.use(require('./ldap'))
|
||||||
if (config.email) authRouter.use('/', require('./email'))
|
if (config.email) authRouter.use(require('./email'))
|
||||||
|
|
||||||
// logout
|
// logout
|
||||||
authRouter.get('/logout', function (req, res) {
|
authRouter.get('/logout', function (req, res) {
|
||||||
|
|
Loading…
Reference in New Issue