Skip to content

Commit

Permalink
feat: 🎸 remove word api from routes (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
raduachim authored Oct 23, 2019
1 parent 6b2a986 commit 33d77e3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ router.get('/', (req, res, next) => {
/* health route */
router.use('/health', health)

/* communication */
router.use('/api', signed(jwt), async (req, res, next) => {
try {
await messages.handle(req, res, next)
} catch (error) {
next(error)
}
})

router.get('/jwks/:kid?', (req, res, next) => {
if (!req.params.kid) {
res.send({ keys: [config.get('PUBLIC_KEY')] })
Expand All @@ -32,4 +23,13 @@ router.get('/jwks/:kid?', (req, res, next) => {
}
})

/* communication */
router.use('/', signed(jwt), async (req, res, next) => {
try {
await messages.handle(req, res, next)
} catch (error) {
next(error)
}
})

module.exports = router

0 comments on commit 33d77e3

Please sign in to comment.