2021-07-03 13:56:53 +00:00
|
|
|
import config from '../config.mjs'
|
2017-12-09 21:51:18 +00:00
|
|
|
|
|
|
|
export async function testStatic(ctx) {
|
|
|
|
ctx.body = {
|
|
|
|
name: config.get('name'),
|
|
|
|
version: config.get('version'),
|
|
|
|
environment: config.get('NODE_ENV'),
|
|
|
|
}
|
|
|
|
}
|
2021-07-03 13:56:53 +00:00
|
|
|
|
|
|
|
export async function testError(ctx) {
|
|
|
|
throw new Error('This is a test')
|
|
|
|
}
|