filadelfia_distributer/api/static_routes.mjs

17 lines
311 B
JavaScript
Raw Normal View History

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