123456789 |
- 'use strict';
- module.exports = app => {
- const { router, controller } = app;
- const prefix = '/api/exam/';
- const target = 'config';
- // router.resources(target, `${prefix}${target}`, controller[target]); // index、create、show、destroy
- router.get(target, `${prefix}${target}`, controller[target].show); // index、create、show、destroy
- router.post(target, `${prefix}${target}/update/:id`, controller[target].update);
- };
|