/**
 * MSW handlers for conformance check parameter endpoints.
 * @module mocks/handlers/conformance
 */
import { http, HttpResponse } from "msw";
import filterParamsData from "../fixtures/filter-params.json";
import { captureRequest } from "../request-log.js";

export const conformanceHandlers = [
  http.get("/api/log-checks/params*", ({ request }) => {
    captureRequest("GET", new URL(request.url).pathname);
    return HttpResponse.json(filterParamsData);
  }),

  http.get("/api/filter-checks/params*", ({ request }) => {
    captureRequest("GET", new URL(request.url).pathname);
    return HttpResponse.json(filterParamsData);
  }),
];
