1234567891011121314 |
- 'use strict';
- /**
- * @param {Egg.Application} app - egg application
- */
- module.exports = app => {
- const { router, controller } = app;
- // 顾客表
- router.resources('carorder', '/api/servicetest/carorder', controller.carorder); // index、create、show、destroy
- router.post('carorder', '/api/servicetest/carorder/update/:id', controller.carorder.update);
- // 维修表
- router.resources('repair', '/api/servicetest/repair', controller.repair); // index、create、show、destroy
- router.post('repair', '/api/servicetest/repair/update/:id', controller.repair.update);
- };
|