"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const frameShapeController_js_1 = require("../controllers/frameShapeController.js");
const authMiddleware_js_1 = require("../middleware/authMiddleware.js");
const validateRequest_js_1 = require("../middleware/validateRequest.js");
const asyncHandler_js_1 = require("../utils/asyncHandler.js");
const frameShapeValidators_js_1 = require("../validators/frameShapeValidators.js");
const router = (0, express_1.Router)();
router.use(authMiddleware_js_1.requireStaff);
router.get("/", (0, validateRequest_js_1.validateQuery)(frameShapeValidators_js_1.frameShapeListQuerySchema), (0, asyncHandler_js_1.asyncHandler)(frameShapeController_js_1.listAdminFrameShapes));
router.post("/", (0, validateRequest_js_1.validateBody)(frameShapeValidators_js_1.createFrameShapeSchema), (0, asyncHandler_js_1.asyncHandler)(frameShapeController_js_1.createAdminFrameShape));
router.get("/:id", (0, validateRequest_js_1.validateParams)(frameShapeValidators_js_1.frameShapeIdParamSchema), (0, asyncHandler_js_1.asyncHandler)(frameShapeController_js_1.getAdminFrameShapeById));
router.patch("/:id", (0, validateRequest_js_1.validateParams)(frameShapeValidators_js_1.frameShapeIdParamSchema), (0, validateRequest_js_1.validateBody)(frameShapeValidators_js_1.updateFrameShapeSchema), (0, asyncHandler_js_1.asyncHandler)(frameShapeController_js_1.updateAdminFrameShape));
router.delete("/:id", (0, validateRequest_js_1.validateParams)(frameShapeValidators_js_1.frameShapeIdParamSchema), (0, asyncHandler_js_1.asyncHandler)(frameShapeController_js_1.deleteAdminFrameShape));
exports.default = router;
//# sourceMappingURL=adminFrameShapeRoutes.js.map