123456789101112 |
- 'use strict';
- module.exports = app => {
- const { router, controller } = app;
- const profix = '/api/qiuguan/';
- const index = 'system';
- const target = 'admin';
- router.post(target, `${profix}${index}/${target}/login`, controller[index][target].login);
- router.resources(target, `${profix}${index}/${target}`, controller[index][target]); // index、create、show、destroy
- router.post(target, `${profix}${index}/${target}/update/:id`, controller[index][target].update);
- };
|