let payRoll = require("../json/payRoll.json");

module.exports = (app) => {
  const { router, controller } = app;

  router.get("/signOut", controller.signOut);

  router.get("/img/*", controller.getImg);

  router.get("/", controller.indexPrefix);

  router.get("/productDes", controller.productDes);

  router.get("/register", controller.register);

  router.get("/mobileRegister", controller.mobileRegister);

  router.get("/mobileRegisterSuccess", controller.mobileRegisterSuccess);

  router.get("/signIn", controller.signIn);

  router.post("/doLogin", controller.doLogin);

  router.get("/signOut", controller.signOut);

  router.post("/smsCodes", controller.smsCodes);

  router.post("/tenants", controller.tenants);

  router.post("/resetPass", controller.resetPass);

  router.post("/updatePassword", controller.updatePassword);

  router.post("/loadUserInfo", controller.loadUserInfo);

  router.post("/getUploaderToken", controller.getUploaderToken);

  router.post("/delOSSObject", controller.delOSSObject);

  router.post("/smsVerification", controller.smsVerification);

  router.post("/getObjectTokenByID", controller.getObjectTokenByID);

  router.post("/getUserRoles", controller.getUserRoles);

  router.post("/getRoles", controller.getRoles);

  router.post("/updateUserRoles", controller.updateUserRoles);

  router.post("/getTenant", controller.getTenant);

  router.post("/updateTenant", controller.updateTenant);

  router.get("/offer/:requestId", controller.offer);

  router.post("/onboardStatus", controller.onboardStatus);

  router.get("/downloadApp", controller.dowloadApp);

  router.get("/info/policy", controller.softwareLicense);

  router.get("/payRoll", function (req, res, next) {
    res.send(payRoll);
  });

  router.get("/recharge", controller.recharge);

  router.post("/changePassForRegister", controller.changePassForRegister);

  router.post("/changeTenant", controller.changeTenant);

  router.post("/hr/sendRejectOffer", controller.sendRejectOffer);

  router.post("/hr/acceptOffer", controller.acceptOffer);

  router.post("/imTokens", controller.imTokens);

  router.post("/listChannels", controller.listChannels);

  router.post("/getTastLink", controller.getTastLink);

  router.get("/filemeta", controller.filemeta);

  router.get("/getCustomerQrcode", controller.getCustomerQrcode);

  router.get("/getPositionQrcode", controller.getPositionQrcode);

  router.get("/minishop/:id", controller.weidianTempLate);

  router.get("/wso-workai", controller.workaiSecurityOAuth);

  router.get(
    "/socialwork/freedom-jobs/emps/:id/:verification",
    controller.freedomJobsEmp
  );

  router.get("/socialwork/freedom-jobs/emps/:id", controller.freedomJobsEmp);

  router.get("/getShortToken", controller.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);
};