|
@@ -5,7 +5,7 @@ module.exports = app => {
|
|
const { router, controller } = app;
|
|
const { router, controller } = app;
|
|
const profix = '/api/hc/';
|
|
const profix = '/api/hc/';
|
|
const target = 'apply';
|
|
const target = 'apply';
|
|
- router.post(target, `${profix}${target}/export`, controller[target].export);
|
|
|
|
|
|
+ router.get(target, `${profix}${target}/export`, controller[target].export);
|
|
router.post(target, `${profix}${target}/compare`, controller[target].compare);
|
|
router.post(target, `${profix}${target}/compare`, controller[target].compare);
|
|
router.resources(target, `${profix}${target}`, controller[target]); // index、create、show、destroy
|
|
router.resources(target, `${profix}${target}`, controller[target]); // index、create、show、destroy
|
|
router.post(target, `${profix}${target}/update/:id`, controller[target].update);
|
|
router.post(target, `${profix}${target}/update/:id`, controller[target].update);
|