123456789101112131415161718192021 |
- 'use strict';
- /**
- * @param {Egg.Application} app - egg application
- */
- module.exports = app => {
- const { router, controller } = app;
- // router.get('/', controller.home.index);
- // 企业信息表设置
- router.resources('company', '/api/servicetest/company', controller.company); // index、create、show、destroy
- router.post('company', '/api/servicetest/company/update/:id', controller.company.update);
- // 企业信息表设置
- router.resources('testmess', '/api/servicetest/testmess', controller.testmess); // index、create、show、destroy
- router.post('testmess', '/api/servicetest/testmess/update/:id', controller.testmess.update);
- // 1000万数据
- // 信息表设置路由
- router.resources('thousand', '/api/servicetest/thousand', controller.thousand); // index、create、show、destroy
- router.post('thousand', '/api/servicetest/thousand/update/:id', controller.thousand.update);
- };
|