import { Router } from 'express';
import { SelectedProductCollectionController } from './controller.js';
import { schema } from './validation.js';
import { validate } from '../../../../validation/validate.js';

/* eslint-disable no-param-reassign */
const routes = ({ layoutPath, services }) => {
    const router = Router({ mergeParams: true });
    const controller = new SelectedProductCollectionController(layoutPath, services);
    router.post('/', validate(schema), controller.POST);
    return router;
};

export { routes };
//# sourceMappingURL=routes.js.map
