Jonatan Nilsson
17e266e89a
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
discord_embed: Create a test redirect
17 lines
307 B
JavaScript
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'),
|
|
}
|
|
}
|
|
}
|