"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const wishlist_controller_1 = require("../controllers/wishlist.controller");
const auth_middleware_1 = require("../middleware/auth.middleware");
const validate_middleware_1 = require("../middleware/validate.middleware");
const wishlist_validator_1 = require("../validators/wishlist.validator");
const router = (0, express_1.Router)();
// All wishlist endpoints require customer authentication
router.use(auth_middleware_1.authenticateJWT);
router.get('/', wishlist_controller_1.getWishlist);
router.get('/count', wishlist_controller_1.getWishlistCount);
router.post('/toggle', (0, validate_middleware_1.validateRequest)(wishlist_validator_1.toggleWishlistSchema), wishlist_controller_1.toggleWishlistItem);
router.delete('/clear', wishlist_controller_1.clearWishlist);
router.delete('/:bookId', wishlist_controller_1.removeFromWishlist);
exports.default = router;
//# sourceMappingURL=wishlist.routes.js.map