123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- 'use strict';
- module.exports = app => {
- const { router, controller } = app;
-
- router.get('/', controller.home.index);
- //comm
- router.get("/oss/policy", controller.oss.policy);
- router.post("/sys/common/upload", controller.sys.common.upload);
- //admin
- router.post("/admin/login/in", controller.admin.index.login);
- router.post("/admin/login/out", controller.admin.index.loginOut);
- router.get("/admin/login/captcha/:key", controller.admin.index.captcha);
- router.get("/admin/user/list", controller.admin.user.list);
- router.delete("/admin/user/delete", controller.admin.user.delete);
- router.put("/admin/user/edit", controller.admin.user.edit);
- router.put("/admin/user/resetpwd", controller.admin.user.resetpwd);
- router.post("/admin/user/add", controller.admin.user.add);
- router.get("/admin/user/profile", controller.admin.user.getProfile);
- router.get("/admin/user/record", controller.admin.user.getUserRecord);
- router.get("/admin/user/recordList", controller.admin.user.getUserRecordList);
- router.post("/admin/user/comment", controller.admin.user.commentUserRecord);
- router.get("/admin/user/exportXls", controller.admin.user.exportXls);
- router.get("/admin/user/exportProfile", controller.admin.user.exportProfileXls);
- router.get("/admin/course/list", controller.admin.course.list);
- router.delete("/admin/course/delete", controller.admin.course.delete);
- router.put("/admin/course/edit", controller.admin.course.edit);
- router.post("/admin/course/add", controller.admin.course.add);
- router.get("/admin/course/exportXls", controller.admin.course.exportXls);
- router.post("/admin/course/lock", controller.admin.course.lock);
- router.get("/admin/record/list", controller.admin.record.list);
- router.get("/admin/user/teacher", controller.admin.user.teachers);
- router.get("/admin/record/detail", controller.admin.record.detail);
- router.delete("/admin/record/delete", controller.admin.record.delete);
- router.get("/admin/record/exportXls", controller.admin.record.exportXls);
- router.get("/admin/record/detail/exportXls", controller.admin.record.itemExportXls);
- router.get("/admin/logs/list", controller.admin.logs.listNormal);
- router.get("/admin/logs/flyPosture", controller.admin.logs.listFlyPosture);
- router.get("/admin/logs/message", controller.admin.logs.listMessage);
- router.get("/admin/logs/exportXls", controller.admin.logs.exportXls);
-
- router.get("/admin/duplicate/check",controller.admin.index.duplicateCheck);
- router.get("/admin/server/state",controller.sys.device.getServerState);
- router.post("/admin/server/shutdown",controller.sys.device.shutdownServer);
- router.post("/admin/server/start",controller.sys.device.startServer);
- router.post("/admin/server/restart",controller.sys.device.restartServer);
- //查看服务器状态
- router.get("/admin/device/mysql",controller.sys.device.mysql);
- router.get("/admin/device/train",controller.sys.device.getServerState);
-
- // router.get("/sys/user/list", controller.sys.user.list);
- // router.delete("/sys/user/delete", controller.sys.user.delete);
- // router.put("/sys/user/edit", controller.sys.user.edit);
- // router.put("/sys/user/changePassword", controller.sys.user.resetpwd);
- // router.post("/sys/user/add", controller.sys.user.add);
- // router.get("/sys/user/queryUserRole", controller.sys.user.queryUserRole);
- // router.put("/sys/user/frozenBatch", controller.sys.user.frozenBatch);
- router.get("/sys/user/checkOnlyUser", controller.sys.user.checkOnlyUser);
- // router.get("/sys/role/queryall", controller.sys.perm.queryallrole);
- // router.get("/sys/role/list", controller.sys.user.roleList);
- // router.post("/sys/role/add", controller.sys.user.addRole);
- // router.put("/sys/role/edit", controller.sys.user.editRole);
- // router.delete("/sys/role/delete", controller.sys.user.deleteRole);
- // router.get("/sys/role/queryTreeList", controller.sys.user.queryTreeList);
- // router.post("/sys/permission/saveRolePermission", controller.sys.user.saveRolePermission);
- // router.get("/sys/permission/queryRolePermission", controller.sys.user.queryRolePermission);
- // router.get("/sys/permission/queryTreeList", controller.sys.user.queryTreeList);
- // router.post("/sys/permission/add", controller.sys.perm.add);
- // router.get("/sys/permission/list", controller.sys.perm.list);
- // router.delete("/sys/permission/delete",controller.sys.perm.delete);
- // router.put("/sys/permission/edit", controller.sys.perm.edit);
- // router.delete("/sys/permission/deleteBatch", controller.sys.perm.deleteBatch);
- router.get("/sys/permission/getUserPermissionByToken", controller.sys.perm.getUserPermissionByToken);
- router.get("/sys/user/userRoleList", controller.sys.user.userRoleList);
- router.post("/sys/user/addSysUserRole",controller.sys.user.addSysUserRole);
- router.delete("/sys/user/deleteUserRole", controller.sys.user.deleteUserRole);
- router.delete("/sys/user/deleteUserRoleBatch", controller.sys.user.deleteUserRoleBatch);
- //icon
- router.get("/admin/icons/list", controller.admin.icon.list);
- router.delete("/admin/icons/delete", controller.admin.icon.delete);
- router.put("/admin/icons/edit", controller.admin.icon.edit);
- router.post("/admin/icons/add", controller.admin.icon.add);
- //weapon
- router.get("/admin/weapon/list", controller.admin.weapon.list);
- router.delete("/admin/weapon/delete", controller.admin.weapon.delete);
- router.put("/admin/weapon/edit", controller.admin.weapon.edit);
- router.post("/admin/weapon/add", controller.admin.weapon.add);
- router.get("/admin/weapon/exportXls", controller.admin.weapon.exportXls);
- //app
- router.post("/app/login/in", controller.app.user.loginPassword);
- router.get("/app/course/list", controller.app.course.list);
- router.post("/app/course/add", controller.app.course.add);
- router.post("/app/course/save", controller.app.course.save);
- router.post("/app/record/add", controller.app.record.create);
- router.post("/app/record/update", controller.app.record.update);
- router.post("/app/record/complete", controller.app.record.complete);
-
- router.post("/app/record/addplayback", controller.app.record.addPlayback);
- router.get("/app/record/playback", controller.app.record.playbackList);
- router.post("/app/message/add", controller.app.message.add);
-
- router.post("/app/logs/add", controller.app.logs.add);
- router.post("/app/logs/flyPosture", controller.app.logs.flyPosture);
- router.post("/app/logs/flyState", controller.app.logs.flyState);
-
- router.get("/app/icons/list", controller.app.icon.list);
- router.get("/app/weapon/supportedPlane",controller.app.weapon.supportedPlane);
- router.get("/app/weapon/plane",controller.app.weapon.getPlaneInfo);
- router.get("/app/screen/info", controller.app.other.bigScreen);
- //获取领航配置的线条
- router.get("/app/screen/naviLine", controller.app.other.naviConfig);
- //获取飞行员的速度和高度曲线
- router.get("/app/screen/twoline", controller.app.other.twolines);
- //获取飞行员的飞行轨迹
- router.get("/app/screen/pilotFlyLine", controller.app.other.pilotFlyLines);
- //地图相关
- router.get("/app/map/points", controller.app.map.points);
- router.get("/app/map/search", controller.app.map.search);
- //领航规划图
- router.post("/app/map/naviConfig", controller.app.map.updateNaviConfig);
- router.get('/*', controller.home.index);
- router.post('/*', controller.home.index);
- };
|