storage-upload/api/test/routes.mjs

20 lines
347 B
JavaScript
Raw Normal View History

import config from '../config.mjs'
2017-12-09 21:51:18 +00:00
export default class TestRoutes {
constructor(opts = {}) {
Object.assign(this, { })
}
static(ctx) {
ctx.body = {
name: config.get('name'),
version: config.get('version'),
environment: config.get('NODE_ENV'),
}
2017-12-09 21:51:18 +00:00
}
error(ctx) {
throw new Error('This is a test')
}
}