Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function (router) {
// Same trick as the functional API, but using `makeClassInvoker`.
const api = makeClassInvoker(HealthApi)
router.get('/v1/health', api('health'))
router.get('/v1/info', api('info'))
}
export default function (router) {
// Same trick as the functional API, but using `makeClassInvoker`.
const api = makeClassInvoker(ClassesAPI)
router.get('/api/classes', api('findClasses'))
}
export default function (router) {
// Same trick as the functional API, but using `makeClassInvoker`.
const api = makeClassInvoker(PagesApi)
router.get('/v1/slides/:slideId/pages', api('getSlidePages'))
}