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

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

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