Sindbad~EG File Manager
const router = require("express").Router();
const { upload } = require("../controllers/imageUploadController");
const {
auctioneerLogin,
signupController,
getAuctioneerProfile,
removeAuctioneer,
updateAuctioneerPassword,
GetAuctioneerUsers,
updateVehicleStatus,
updateAuctioneerProfile,
updateAuctioneerBusinessLogo,
getAllAssignedVehicles,
sortAuctioneerVehicles,
filterByConditionLight,
filterBySaleStatus,
GetVehicleCountBySaleStatus,
GetVehicleCountByConditionLight,
GetAuctioneerUsersOnly,
getAllAssignedVehiclesOnly,
filterByAuctioneerAuctions,
auctioneerTotalSaleAndNetProceed,
getConditionLightVehicles,
getSaleStatusVehicles,
GetVehicleCountByAuction,
forgotPassword,
resetPasswordViaToken,
validateOTPOrToken,
exportByWholeSaler,
exportByAuctions,
exportByConditionLight,
exportBySaleStatus,
} = require("../controllers/auctioneerController");
router.post("/login", auctioneerLogin);
// router.post("/signup", signupController);
router.post("/forgot-password", forgotPassword);
router.post("/reset-password", resetPasswordViaToken);
router.post("/validate-token", validateOTPOrToken);
router.post("/get-auctioneer-profile/:id", getAuctioneerProfile);
router.post("/remove-auctioneer", removeAuctioneer);
router.post("/update-password", updateAuctioneerPassword);
router.patch("/update-auctioneer-profile", updateAuctioneerProfile);
router.patch(
"/update-business-logo",
upload.single("business_logo"),
updateAuctioneerBusinessLogo
);
router.post("/get-auctioneer-users", GetAuctioneerUsers);
router.post("/get-auctioneer-users-only", GetAuctioneerUsersOnly); //fultter-application
// router.post("/auctioneer-cars", getAllCarsByAuctioneerId);
router.post("/auctioneer-vehicles", getAllAssignedVehicles);
// router.post("/auctioneer-vehicles-only", getAllCarsByAuctioneerIdOnly); //flutter-application
router.post("/auctioneer-vehicles-only", getAllAssignedVehiclesOnly); //flutter-application
// router.post("/sort-by-year", sortByYear);
router.post("/sort-auctioneer-vehicles", sortAuctioneerVehicles);
// router.post("/sort-by-mileage", sortByMileage);
router.post("/filter-by-auctioneer-auctions", filterByAuctioneerAuctions);
// router.post("/sort-by-condition-light", sortByConditionLight);
router.post("/filter-by-condition-light", filterByConditionLight);
router.post("/get-condition-light-vehicles", getConditionLightVehicles);
// router.post("/sort-by-sale-status", sortBySaleStatus);
router.post("/filter-by-sale-status", filterBySaleStatus);
router.post("/get-sale-status-vehicles", getSaleStatusVehicles);
router.post("/update-vehicle-status/:id", updateVehicleStatus);
// router.post("/update-vehicle-status/:id", updateCarStatus);
router.post("/carCountBySaleStatus", GetVehicleCountBySaleStatus); //Hamza Ali
router.post("/carCountByConditonLight", GetVehicleCountByConditionLight); //Hamza Ali
router.post("/carCountByAuction", GetVehicleCountByAuction); //Hamza Ali
router.post("/auctioneer-stats", auctioneerTotalSaleAndNetProceed);
router.post("/export-by-wholesaler", exportByWholeSaler);
router.post("/export-by-auctions", exportByAuctions);
router.post("/export-by-condition-light", exportByConditionLight);
router.post("/export-by-sale-status", exportBySaleStatus);
module.exports = router;
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists