@hmcts/info-provider
v1.2.2
Published
info-provider
Downloads
12,582
Maintainers
Keywords
Readme
nodejs-info-provider
$ yarn add @hmcts/info-provider
Typescript:
import { InfoContributor, infoRequestHandler } from '@hmcts/info-provider'
express.Router()
.get('/info', infoRequestHandler({
info: {
'fees-register': new InfoContributor('https://fees-register.com/info')
},
extraBuildInfo: {
featureToggles: config.get('featureToggles'),
hostname: hostname()
}
}))
- Javascript -
const { InfoContributor, infoRequestHandler } = require('@hmcts/info-provider')
express.Router()
.get('/info', infoRequestHandler({
info: {
'fees-register': new InfoContributor('http://fees-register.com/info')
},
extraBuildInfo: {
featureToggles: config.get('featureToggles'),
hostname: hostname()
}
}))