mapped TM with RD
This commit is contained in:
parent
f39ee1baec
commit
264cf42a57
@ -1,13 +1,13 @@
|
|||||||
import express from "express";
|
import express from "express";
|
||||||
import {
|
import {
|
||||||
ChangePasswordRD,
|
ChangePasswordRD,
|
||||||
forgotPassword,
|
forgotPasswordRD,
|
||||||
getAllRDbytmid,
|
getAllRDbytmid,
|
||||||
getAllRetailDistributorApproved,
|
getAllRetailDistributorApproved,
|
||||||
getmyProfile,
|
getmyProfileRD,
|
||||||
getRDId,
|
getRDId,
|
||||||
loginRD,
|
loginRD,
|
||||||
UpdateProfile,
|
UpdateProfileRD,
|
||||||
updateRDMapped,
|
updateRDMapped,
|
||||||
updateunmapRD,
|
updateunmapRD,
|
||||||
} from "./RetailDistributorController.js";
|
} from "./RetailDistributorController.js";
|
||||||
@ -17,20 +17,15 @@ import { authorizeRoles, isAuthenticatedUser } from "../../middlewares/auth.js";
|
|||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
|
|
||||||
router.route("/rd-login").post(loginRD);
|
router.route("/rd-login").post(loginRD);
|
||||||
router.route("/rd-get-me").get(isAuthenticatedRD, getmyProfile);
|
router.route("/rd-get-me").get(isAuthenticatedRD, getmyProfileRD);
|
||||||
router.post("/forgot-password", forgotPassword);
|
router.post("/forgot-password", forgotPasswordRD);
|
||||||
router.put(
|
router.put(
|
||||||
"/rd-password/update",
|
"/rd-password/update",
|
||||||
isAuthenticatedRD,
|
isAuthenticatedRD,
|
||||||
|
|
||||||
ChangePasswordRD
|
ChangePasswordRD
|
||||||
);
|
);
|
||||||
router.patch(
|
router.patch("/rd-profile/update", isAuthenticatedRD, UpdateProfileRD);
|
||||||
"/rd-profile/update",
|
|
||||||
isAuthenticatedRD,
|
|
||||||
|
|
||||||
UpdateProfile
|
|
||||||
);
|
|
||||||
//admin and maping
|
//admin and maping
|
||||||
router
|
router
|
||||||
.route("/getAllRD")
|
.route("/getAllRD")
|
||||||
|
Loading…
Reference in New Issue
Block a user