1234567891011 |
- 'use strict';
- /**
- * @param {Egg.Application} app - egg application
- */
- module.exports = app => {
- const prefix = '/api/servicezhwl';
- const index = 'personnel';
- const { router, controller } = app;
- router.resources('driver', `${prefix}/driver`, controller[index].driver); // index、create、show、destroy
- router.post('driver', `${prefix}/driver/update/:id`, controller[index].driver.update);
- };
|