storage-upload/api/test/routes.mjs

19 lines
347 B
JavaScript

import config from '../config.mjs'
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'),
}
}
error(ctx) {
throw new Error('This is a test')
}
}