Commit 59d6296b authored by 郝聪敏's avatar 郝聪敏

feature: 添加健康检查

parent aa734ce9
......@@ -3,6 +3,12 @@ import { Application } from 'egg';
export default (application: Application) => {
const { router, controller } = application;
const healthMessage = { message: 'service is running...' };
router.get('/tech/health/check', ctx => {
ctx.body = healthMessage;
});
router.post('/editor/save', controller.editor.save);
router.post('/editor/update', controller.editor.update);
router.get('/editor/get/list', controller.editor.getList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment