Files
ZYZ/gm-server/app/controller/game.ts
2021-05-19 16:24:52 +08:00

17 lines
364 B
TypeScript

import { Controller } from 'egg';
export default class GameController extends Controller {
public async getServerEnv() {
const { ctx } = this;
ctx.body = await ctx.service.game.getServerEnv();
return
}
public async getServerListByEnv() {
const { ctx } = this;
ctx.body = await ctx.service.game.getServerListByEnv();
return
}
}