添加 eggjs web-server,初步支持多宝短信
This commit is contained in:
8
web-server/app/controller/home.ts
Normal file
8
web-server/app/controller/home.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Controller } from 'egg';
|
||||
|
||||
export default class HomeController extends Controller {
|
||||
public async index() {
|
||||
const { ctx } = this;
|
||||
ctx.body = await ctx.service.test.sayHi('egg');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user