|
@@ -67,6 +67,14 @@ module.exports = app => {
|
|
router.resources('uploadquestion', '/api/onlive/uploadquestion', controller.uploadquestion); // index、create、show、destroy
|
|
router.resources('uploadquestion', '/api/onlive/uploadquestion', controller.uploadquestion); // index、create、show、destroy
|
|
router.post('uploadquestion', '/api/onlive/uploadquestion/update/:id', controller.uploadquestion.update);
|
|
router.post('uploadquestion', '/api/onlive/uploadquestion/update/:id', controller.uploadquestion.update);
|
|
|
|
|
|
|
|
+ // 联系我们表配置路由
|
|
|
|
+ router.resources('contact', '/api/onlive/contact', controller.contact); // index、create、show、destroy
|
|
|
|
+ router.post('contact', '/api/onlive/contact/update/:id', controller.contact.update);
|
|
|
|
+
|
|
|
|
+ // 会议简介表配置路由
|
|
|
|
+ router.resources('news', '/api/onlive/news', controller.news); // index、create、show、destroy
|
|
|
|
+ router.post('news', '/api/onlive/news/update/:id', controller.news.update);
|
|
|
|
+
|
|
// 用户登录
|
|
// 用户登录
|
|
router.post('/api/onlive/login', controller.login.login);
|
|
router.post('/api/onlive/login', controller.login.login);
|
|
router.post('/api/onlive/trtclogin', controller.login.trtclogin);
|
|
router.post('/api/onlive/trtclogin', controller.login.trtclogin);
|