提交 7f8655c2d7e85d36c6c1db96f2a3b890b692c272

作者 weiyy
1 个父辈 1ee493ad

yun-tijiao

... ... @@ -4,6 +4,6 @@
4 4 * @param {Egg.Application} app - egg application
5 5 */
6 6 module.exports = app => {
7   - require('./router/api')(app);
  7 + require('./router/auth')(app);
8 8 require('./router/home')(app);
9 9 };
... ...
1   -let payRoll = require("../json/payRoll.json");
2 1
3 2 module.exports = (app) => {
4 3 const { router, controller } = app;
  4 + const { auth } = controller;
  5 +console.log('controllerxxxxx',controller);
  6 + router.get("/signOut", auth.signOut);
5 7
6   - router.get("/signOut", controller.signOut);
  8 + // router.get("/img/*", auth.getImg);
7 9
8   - router.get("/img/*", controller.getImg);
  10 + // router.get("/", auth.indexPrefix);
9 11
10   - router.get("/", controller.indexPrefix);
  12 + // router.get("/productDes", auth.productDes);
11 13
12   - router.get("/productDes", controller.productDes);
  14 + // router.get("/register", auth.register);
13 15
14   - router.get("/register", controller.register);
  16 + // router.get("/mobileRegister", auth.mobileRegister);
15 17
16   - router.get("/mobileRegister", controller.mobileRegister);
  18 + // router.get("/mobileRegisterSuccess", auth.mobileRegisterSuccess);
17 19
18   - router.get("/mobileRegisterSuccess", controller.mobileRegisterSuccess);
  20 + // router.get("/signIn", auth.signIn);
19 21
20   - router.get("/signIn", controller.signIn);
  22 + // router.post("/doLogin", auth.doLogin);
21 23
22   - router.post("/doLogin", controller.doLogin);
  24 + // router.get("/signOut", auth.signOut);
23 25
24   - router.get("/signOut", controller.signOut);
  26 + // router.post("/smsCodes", auth.smsCodes);
25 27
26   - router.post("/smsCodes", controller.smsCodes);
  28 + // router.post("/tenants", auth.tenants);
27 29
28   - router.post("/tenants", controller.tenants);
  30 + // router.post("/resetPass", auth.resetPass);
29 31
30   - router.post("/resetPass", controller.resetPass);
  32 + // router.post("/updatePassword", auth.updatePassword);
31 33
32   - router.post("/updatePassword", controller.updatePassword);
  34 + // router.post("/loadUserInfo", auth.loadUserInfo);
33 35
34   - router.post("/loadUserInfo", controller.loadUserInfo);
  36 + // router.post("/getUploaderToken", auth.getUploaderToken);
35 37
36   - router.post("/getUploaderToken", controller.getUploaderToken);
  38 + // router.post("/delOSSObject", auth.delOSSObject);
37 39
38   - router.post("/delOSSObject", controller.delOSSObject);
  40 + // router.post("/smsVerification", auth.smsVerification);
39 41
40   - router.post("/smsVerification", controller.smsVerification);
  42 + // router.post("/getObjectTokenByID", auth.getObjectTokenByID);
41 43
42   - router.post("/getObjectTokenByID", controller.getObjectTokenByID);
  44 + // router.post("/getUserRoles", auth.getUserRoles);
43 45
44   - router.post("/getUserRoles", controller.getUserRoles);
  46 + // router.post("/getRoles", auth.getRoles);
45 47
46   - router.post("/getRoles", controller.getRoles);
  48 + // router.post("/updateUserRoles", auth.updateUserRoles);
47 49
48   - router.post("/updateUserRoles", controller.updateUserRoles);
  50 + // router.post("/getTenant", auth.getTenant);
49 51
50   - router.post("/getTenant", controller.getTenant);
  52 + // router.post("/updateTenant", auth.updateTenant);
51 53
52   - router.post("/updateTenant", controller.updateTenant);
  54 + // router.get("/offer/:requestId", auth.offer);
53 55
54   - router.get("/offer/:requestId", controller.offer);
  56 + // router.post("/onboardStatus", auth.onboardStatus);
55 57
56   - router.post("/onboardStatus", controller.onboardStatus);
  58 + // router.get("/downloadApp", auth.dowloadApp);
57 59
58   - router.get("/downloadApp", controller.dowloadApp);
  60 + // router.get("/info/policy", auth.softwareLicense);
59 61
60   - router.get("/info/policy", controller.softwareLicense);
  62 + // router.get("/recharge", auth.recharge);
61 63
62   - router.get("/payRoll", function (req, res, next) {
63   - res.send(payRoll);
64   - });
  64 + // router.post("/changePassForRegister", auth.changePassForRegister);
65 65
66   - router.get("/recharge", controller.recharge);
  66 + // router.post("/changeTenant", auth.changeTenant);
67 67
68   - router.post("/changePassForRegister", controller.changePassForRegister);
  68 + // router.post("/hr/sendRejectOffer", auth.sendRejectOffer);
69 69
70   - router.post("/changeTenant", controller.changeTenant);
  70 + // router.post("/hr/acceptOffer", auth.acceptOffer);
71 71
72   - router.post("/hr/sendRejectOffer", controller.sendRejectOffer);
  72 + // router.post("/imTokens", auth.imTokens);
73 73
74   - router.post("/hr/acceptOffer", controller.acceptOffer);
  74 + // router.post("/listChannels", auth.listChannels);
75 75
76   - router.post("/imTokens", controller.imTokens);
  76 + // router.post("/getTastLink", auth.getTastLink);
77 77
78   - router.post("/listChannels", controller.listChannels);
  78 + // router.get("/filemeta", auth.filemeta);
79 79
80   - router.post("/getTastLink", controller.getTastLink);
  80 + // router.get("/getCustomerQrcode", auth.getCustomerQrcode);
81 81
82   - router.get("/filemeta", controller.filemeta);
  82 + // router.get("/getPositionQrcode", auth.getPositionQrcode);
83 83
84   - router.get("/getCustomerQrcode", controller.getCustomerQrcode);
  84 + // router.get("/minishop/:id", auth.weidianTempLate);
85 85
86   - router.get("/getPositionQrcode", controller.getPositionQrcode);
  86 + // router.get("/wso-workai", auth.workaiSecurityOAuth);
87 87
88   - router.get("/minishop/:id", controller.weidianTempLate);
  88 + // router.get(
  89 + // "/socialwork/freedom-jobs/emps/:id/:verification",
  90 + // auth.freedomJobsEmp
  91 + // );
89 92
90   - router.get("/wso-workai", controller.workaiSecurityOAuth);
  93 + // router.get("/socialwork/freedom-jobs/emps/:id", auth.freedomJobsEmp);
91 94
92   - router.get(
93   - "/socialwork/freedom-jobs/emps/:id/:verification",
94   - controller.freedomJobsEmp
95   - );
  95 + // router.get("/getShortToken", auth.getShortToken);
96 96
97   - router.get("/socialwork/freedom-jobs/emps/:id", controller.freedomJobsEmp);
  97 + // router.get("/gainianrenli/*", auth.getImg);
98 98
99   - router.get("/getShortToken", controller.getShortToken);
  99 + // router.get("/waifu_img/*", auth.getImg);
100 100
101   - router.get("/gainianrenli/*", controller.getImg);
  101 + // router.get("/my_img/*", auth.getImg);
102 102
103   - router.get("/waifu_img/*", controller.getImg);
  103 + // router.get("/invoice_file_icon/*", auth.getImg);
104 104
105   - router.get("/my_img/*", controller.getImg);
106   -
107   - router.get("/invoice_file_icon/*", controller.getImg);
108   -
109   - router.get("/gainianrenli/*", controller.getImg);
  105 + // router.get("/gainianrenli/*", auth.getImg);
110 106
111   - router.get("/claim_icons/*", controller.getImg);
  107 + // router.get("/claim_icons/*", auth.getImg);
112 108 };
... ...
... ... @@ -34,7 +34,7 @@ module.exports = appInfo => {
34 34 config.cluster = {
35 35 listen: {
36 36 path: '',
37   - port: 8001,
  37 + port: 8012,
38 38 hostname: '0.0.0.0',
39 39 }
40 40 };
... ...
注册登录 后发表评论