church_streamer/api/static_routes.mjs

18 lines
307 B
JavaScript
Raw Permalink Normal View History

2024-02-13 23:54:45 +00:00
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'),
}
}
}