添加 eggjs web-server,初步支持多宝短信
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { Application } from 'egg';
|
||||
|
||||
export default (app: Application) => {
|
||||
const { controller, router } = app;
|
||||
|
||||
router.get('/', controller.home.index);
|
||||
router.post('/user/getsms', controller.account.getSms);
|
||||
};
|
||||
Reference in New Issue
Block a user