"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const uploadController_js_1 = require("../controllers/uploadController.js");
const authMiddleware_js_1 = require("../middleware/authMiddleware.js");
const uploadMiddleware_js_1 = require("../middleware/uploadMiddleware.js");
const asyncHandler_js_1 = require("../utils/asyncHandler.js");
const router = (0, express_1.Router)();
router.use(authMiddleware_js_1.requireStaff);
router.post("/product-images", uploadMiddleware_js_1.productImageUpload.array("images", 8), (0, asyncHandler_js_1.asyncHandler)(uploadController_js_1.uploadProductImages));
router.post("/shape-images", uploadMiddleware_js_1.shapeImageUpload.array("images", 4), (0, asyncHandler_js_1.asyncHandler)(uploadController_js_1.uploadShapeImages));
router.post("/brand-images", uploadMiddleware_js_1.brandImageUpload.array("images", 4), (0, asyncHandler_js_1.asyncHandler)(uploadController_js_1.uploadBrandImages));
router.post("/product-type-images", uploadMiddleware_js_1.productTypeImageUpload.array("images", 4), (0, asyncHandler_js_1.asyncHandler)(uploadController_js_1.uploadProductTypeImages));
router.post("/review-images", uploadMiddleware_js_1.reviewImageUpload.array("images", 1), (0, asyncHandler_js_1.asyncHandler)(uploadController_js_1.uploadReviewImages));
router.post("/banner-images", uploadMiddleware_js_1.bannerImageUpload.single("image"), (0, asyncHandler_js_1.asyncHandler)(uploadController_js_1.uploadBannerImages));
exports.default = router;
//# sourceMappingURL=adminUploadRoutes.js.map