2021-09-01 12:46:41 +00:00
|
|
|
const Router = require('@koa/router')
|
|
|
|
const oauthCtrl = require('src/controllers/oauth/index.js')
|
2021-08-31 10:24:42 +00:00
|
|
|
|
2021-09-01 12:46:41 +00:00
|
|
|
const r = new Router({ prefix: '/oauth' })
|
2021-08-31 10:24:42 +00:00
|
|
|
|
2021-09-01 12:46:41 +00:00
|
|
|
r.get('/redirect', oauthCtrl.verifyCode())
|
2021-08-31 10:24:42 +00:00
|
|
|
|
2021-09-01 12:46:41 +00:00
|
|
|
module.exports = r
|