server-handler.js 357 Bytes
const express = require('express');

const passport = require('../models/passport');

const app = express();
const router = express.Router(); // eslint-disable-line

router.get('/xianyu/passport/login/taobao', passport.login.taobaoLogin)
router.get('/xianyu/passport/callback/taobao', passport.login.taobaoCallback)

app.use(router);

module.exports = app;