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