auth.js
3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// var payRoll = require("../json/payRoll.json");
module.exports = (app) => {
const { router, controller} = app;
const { auth } = controller;
const localStrategy = app.passport.authenticate("local", {
successRedirect: "/doLogin/loginCallback",
failureRedirect: "/doLogin/loginCallback",
});
// router.get("/index", controller.index);
router.get("/signOut", auth.signOut);
router.get("/", auth.indexPrefix);
router.get("/productDes", auth.productDes);
router.get("/register", auth.register);
router.get("/mobileRegister", auth.mobileRegister);
router.get("/mobileRegisterSuccess", auth.mobileRegisterSuccess);
router.get("/signIn", auth.signIn);
router.post("/doLogin", localStrategy);
router.get('/doLogin/loginCallback', auth.loginCallback);
router.post("/smsCodes", auth.smsCodes);
router.post("/tenants", auth.tenants);
router.post("/resetPass", auth.resetPass);
router.post("/updatePassword", auth.updatePassword);
router.post("/loadUserInfo", auth.loadUserInfo);
router.post("/getUploaderToken", auth.getUploaderToken);
router.post("/delOSSObject", auth.delOSSObject);
router.post("/smsVerification", auth.smsVerification);
router.post("/getObjectTokenByID", auth.getObjectTokenByID);
// router.get(
// '/healthMonitor',
// auth.healthMonitor
// )
// router.head(
// '/healthMonitor',
// auth.healthMonitor
// )
router.post("/getUserRoles", auth.getUserRoles);
router.post("/getRoles", auth.getRoles);
router.post("/updateUserRoles", auth.updateUserRoles);
router.post("/getTenant", auth.getTenant);
router.post("/updateTenant", auth.updateTenant);
router.get("/offer/:requestId", auth.offer);
router.post("/onboardStatus", auth.onboardStatus);
router.get("/downloadApp", auth.dowloadApp);
router.get("/info/policy", auth.softwareLicense);
// router.get("/payRoll", function (req, res, next) {
// res.send(payRoll);
// });
router.get("/recharge", auth.recharge);
router.post("/changePassForRegister", auth.changePassForRegister);
router.post("/changeTenant", auth.changeTenant);
router.post("/hr/sendRejectOffer", auth.sendRejectOffer);
router.post("/hr/acceptOffer", auth.acceptOffer);
router.post("/imTokens", auth.imTokens);
router.post("/listChannels", auth.listChannels);
router.post("/getTastLink", auth.getTastLink);
router.get("/filemeta", auth.filemeta);
router.get("/getCustomerQrcode", auth.getCustomerQrcode);
router.get("/getPositionQrcode", auth.getPositionQrcode);
router.get("/minishop/:id", auth.weidianTempLate);
router.get("/wso-workai", auth.workaiSecurityOAuth);
router.get(
"/socialwork/freedom-jobs/emps/:id/:verification",
auth.freedomJobsEmp
);
router.get("/socialwork/freedom-jobs/emps/:id", auth.freedomJobsEmp);
router.get("/getShortToken", auth.getShortToken);
// router.get("/gainianrenli/*", controller.getImg);
// router.get("/waifu_img/*", controller.getImg);
// router.get("/my_img/*", controller.getImg);
// router.get("/invoice_file_icon/*", controller.getImg);
// router.get("/gainianrenli/*", controller.getImg);
// router.get("/claim_icons/*", controller.getImg);
};