koa-template/controller/index.js

8 lines
138 B
JavaScript
Raw Permalink Normal View History

2019-12-18 02:59:34 +00:00
const controller = {}
module.exports = controller
controller.healthCheck = async (ctx, next) => {
ctx.body = 'ok'
ctx.status = 200
}