nfp_sites/saproxy/api/static_routes.mjs
Jonatan Nilsson 840f23908e
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
saproxy: Created basic proxy service
2023-05-11 12:26:41 +00:00

17 lines
307 B
JavaScript

import config from './config.mjs'
export default class StaticRoutes {
constructor(opts = {}) {
Object.assign(this, { })
}
register(server) {
server.flaska.get('/api/health', this.health.bind(this))
}
health(ctx) {
ctx.body = {
environment: config.get('NODE_ENV'),
}
}
}