summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoHong Li2017-04-12 06:10:24 +0800
committerRaccoon Li2017-05-08 19:29:06 +0800
commita7e3c4d535e15832b1fff5482582a4c644a00c26 (patch)
tree5dbdd0992b550782606fd3aa9b9761a4fd910a85
parentd88502e3315f189af28ac6e86fccfa1406d75b52 (diff)
refactor(auth.js): Remove base path
Diffstat (limited to '')
-rw-r--r--lib/web/auth/index.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/web/auth/index.js b/lib/web/auth/index.js
index 18d70572..8a4eb774 100644
--- a/lib/web/auth/index.js
+++ b/lib/web/auth/index.js
@@ -29,14 +29,14 @@ passport.deserializeUser(function (id, done) {
})
})
-if (config.facebook) authRouter.use('/', require('./facebook'))
-if (config.twitter) authRouter.use('/', require('./twitter'))
-if (config.github) authRouter.use('/', require('./github'))
-if (config.gitlab) authRouter.use('/', require('./gitlab'))
-if (config.dropbox) authRouter.use('/', require('./dropbox'))
-if (config.google) authRouter.use('/', require('./google'))
-if (config.ldap) authRouter.use('/', require('./ldap'))
-if (config.email) authRouter.use('/', require('./email'))
+if (config.facebook) authRouter.use(require('./facebook'))
+if (config.twitter) authRouter.use(require('./twitter'))
+if (config.github) authRouter.use(require('./github'))
+if (config.gitlab) authRouter.use(require('./gitlab'))
+if (config.dropbox) authRouter.use(require('./dropbox'))
+if (config.google) authRouter.use(require('./google'))
+if (config.ldap) authRouter.use(require('./ldap'))
+if (config.email) authRouter.use(require('./email'))
// logout
authRouter.get('/logout', function (req, res) {