"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const productController_js_1 = require("../controllers/productController.js");
const validateRequest_js_1 = require("../middleware/validateRequest.js");
const asyncHandler_js_1 = require("../utils/asyncHandler.js");
const productValidators_js_1 = require("../validators/productValidators.js");
const router = (0, express_1.Router)();
router.get("/", (0, validateRequest_js_1.validateQuery)(productValidators_js_1.productListQuerySchema), (0, asyncHandler_js_1.asyncHandler)(productController_js_1.listPublicProducts));
router.get("/filters", (0, asyncHandler_js_1.asyncHandler)(productController_js_1.getPublicProductFilters));
router.get("/:slug", (0, validateRequest_js_1.validateParams)(productValidators_js_1.productSlugParamSchema), (0, asyncHandler_js_1.asyncHandler)(productController_js_1.getPublicProductBySlug));
exports.default = router;
//# sourceMappingURL=productRoutes.js.map