后台:独立数据库,路径转发

This commit is contained in:
luying
2021-11-22 19:56:16 +08:00
parent 9d9ed77423
commit 7940e6d09d
16 changed files with 256 additions and 303 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
import { STATUS } from '@consts';
import { Controller } from 'egg';
export default class HomeController extends Controller {
public async index() {
const { ctx } = this;
ctx.body = await ctx.service.test.sayHi('egg');
ctx.body = await ctx.service.utils.resResult(STATUS.SUCCESS);
}
}
+4
View File
@@ -0,0 +1,4 @@
import proxy from 'egg-http-proxy-middleware';
module.exports = proxy;