|
@@ -8,61 +8,62 @@ module.exports = app => {
|
|
|
router.get('/', controller.home.index);
|
|
|
|
|
|
// 轮播图设置
|
|
|
- router.resources("lunbo", "/api/huanqi/lunbo ", controller.lunbo); // index、create、show、destroy
|
|
|
+ router.resources('lunbo', '/api/huanqi/lunbo ', controller.lunbo); // index、create、show、destroy
|
|
|
router.post(
|
|
|
- "lunbo",
|
|
|
- "/api/huanqi/lunbo/update/:id",
|
|
|
+ 'lunbo',
|
|
|
+ '/api/huanqi/lunbo/update/:id',
|
|
|
controller.lunbo.update // update
|
|
|
);
|
|
|
// 企业信息表设置
|
|
|
- router.resources("company", "/api/huanqi/company ", controller.company); // index、create、show、destroy
|
|
|
+ router.resources('company', '/api/huanqi/company ', controller.company); // index、create、show、destroy
|
|
|
router.post(
|
|
|
- "company",
|
|
|
- "/api/huanqi/company/update/:id",
|
|
|
+ 'company',
|
|
|
+ '/api/huanqi/company/update/:id',
|
|
|
controller.company.update // update
|
|
|
);
|
|
|
- // 产品表设置
|
|
|
- router.resources("product", "/api/huanqi/product ", controller.product); // index、create、show、destroy
|
|
|
+ // 产品表设置
|
|
|
+ router.resources('product', '/api/huanqi/product ', controller.product); // index、create、show、destroy
|
|
|
router.post(
|
|
|
- "product",
|
|
|
- "/api/huanqi/product/update/:id",
|
|
|
+ 'product',
|
|
|
+ '/api/huanqi/product/update/:id',
|
|
|
controller.product.update // update
|
|
|
);
|
|
|
- // 案例应用表设置
|
|
|
- router.resources("caseapply", "/api/huanqi/caseapply ", controller.caseapply); // index、create、show、destroy
|
|
|
+ // 案例应用表设置
|
|
|
+ router.resources('caseapply', '/api/huanqi/caseapply ', controller.caseapply); // index、create、show、destroy
|
|
|
router.post(
|
|
|
- "caseapply",
|
|
|
- "/api/huanqi/caseapply/update/:id",
|
|
|
+ 'caseapply',
|
|
|
+ '/api/huanqi/caseapply/update/:id',
|
|
|
controller.caseapply.update // update
|
|
|
- );
|
|
|
- // 热点资讯表设置
|
|
|
- router.resources("hotspot", "/api/huanqi/hotspot ", controller.hotspot); // index、create、show、destroy
|
|
|
+ );
|
|
|
+ // 热点资讯表设置
|
|
|
+ router.resources('hotspot', '/api/huanqi/hotspot ', controller.hotspot); // index、create、show、destroy
|
|
|
router.post(
|
|
|
- "hotspot",
|
|
|
- "/api/huanqi/hotspot/update/:id",
|
|
|
+ 'hotspot',
|
|
|
+ '/api/huanqi/hotspot/update/:id',
|
|
|
controller.hotspot.update // update
|
|
|
);
|
|
|
- // 宣传视频表设置
|
|
|
- router.resources("video", "/api/huanqi/video ", controller.video); // index、create、show、destroy
|
|
|
+ // 宣传视频表设置
|
|
|
+ router.resources('video', '/api/huanqi/video ', controller.video); // index、create、show、destroy
|
|
|
router.post(
|
|
|
- "video",
|
|
|
- "/api/huanqi/video/update/:id",
|
|
|
+ 'video',
|
|
|
+ '/api/huanqi/video/update/:id',
|
|
|
controller.video.update // update
|
|
|
- );
|
|
|
- // 企业信息表设置
|
|
|
- router.resources("business", "/api/huanqi/hotspot ", controller.business); // index、create、show、destroy
|
|
|
+ );
|
|
|
+ // 企业信息表设置
|
|
|
+ router.resources('business', '/api/huanqi/hotspot ', controller.business); // index、create、show、destroy
|
|
|
router.post(
|
|
|
- "business",
|
|
|
- "/api/huanqi/business/update/:id",
|
|
|
+ 'business',
|
|
|
+ '/api/huanqi/business/update/:id',
|
|
|
controller.business.update // update
|
|
|
- );
|
|
|
- // 友情链接表设置
|
|
|
- router.resources("links", "/api/huanqi/links ", controller.links); // index、create、show、destroy
|
|
|
+ );
|
|
|
+ // 友情链接表设置
|
|
|
+ router.resources('links', '/api/huanqi/links ', controller.links); // index、create、show、destroy
|
|
|
router.post(
|
|
|
- "links",
|
|
|
- "/api/huanqi/links/update/:id",
|
|
|
+ 'links',
|
|
|
+ '/api/huanqi/links/update/:id',
|
|
|
controller.links.update // update
|
|
|
);
|
|
|
+};
|
|
|
// // 共通查询单条记录方法
|
|
|
// router.get('/api/train/common/findone/:modelname', controller.common.findone);
|
|
|
// // 共通批量查询方法
|