16 lines
311 B
JavaScript
16 lines
311 B
JavaScript
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,
|
|
}
|
|
}
|
|
}
|