keycloak-demo/routes/index.js

14 lines
320 B
JavaScript
Raw Normal View History

2021-09-01 12:46:41 +00:00
const Router = require('@koa/router')
2021-08-31 10:24:42 +00:00
2021-09-01 12:46:41 +00:00
const controller = require('src/controllers/index.js')
const apiRouter = require('./api/index.js')
const oauthRouter = require('./oauth/index.js')
2021-08-31 10:24:42 +00:00
2021-09-01 12:46:41 +00:00
const r = new Router()
module.exports = r
2021-08-31 10:24:42 +00:00
2021-09-01 12:46:41 +00:00
r.get('/', controller.healthCheck)
2021-08-31 10:24:42 +00:00
2021-09-01 12:46:41 +00:00
r.use(apiRouter.routes())
r.use(oauthRouter.routes())