mapped TM with RD

This commit is contained in:
Sibunnayak 2024-09-10 15:24:00 +05:30
parent f39ee1baec
commit 264cf42a57

View File

@ -1,13 +1,13 @@
import express from "express";
import {
ChangePasswordRD,
forgotPassword,
forgotPasswordRD,
getAllRDbytmid,
getAllRetailDistributorApproved,
getmyProfile,
getmyProfileRD,
getRDId,
loginRD,
UpdateProfile,
UpdateProfileRD,
updateRDMapped,
updateunmapRD,
} from "./RetailDistributorController.js";
@ -17,20 +17,15 @@ import { authorizeRoles, isAuthenticatedUser } from "../../middlewares/auth.js";
const router = express.Router();
router.route("/rd-login").post(loginRD);
router.route("/rd-get-me").get(isAuthenticatedRD, getmyProfile);
router.post("/forgot-password", forgotPassword);
router.route("/rd-get-me").get(isAuthenticatedRD, getmyProfileRD);
router.post("/forgot-password", forgotPasswordRD);
router.put(
"/rd-password/update",
isAuthenticatedRD,
ChangePasswordRD
);
router.patch(
"/rd-profile/update",
isAuthenticatedRD,
UpdateProfile
);
router.patch("/rd-profile/update", isAuthenticatedRD, UpdateProfileRD);
//admin and maping
router
.route("/getAllRD")