/**
 * MSW handlers for file management endpoints.
 * @module mocks/handlers/files
 */
import { http, HttpResponse } from "msw";
import filesData from "../fixtures/files.json";
import { captureRequest } from "../request-log.js";

export const filesHandlers = [
  http.get("/api/files", ({ request }) => {
    captureRequest("GET", "/api/files");
    return HttpResponse.json(filesData);
  }),
];
