UNPKG

@grafana/alerting

Version:

Grafana Alerting Library – Build vertical integrations on top of the industry-leading alerting solution

17 lines (14 loc) 581 B
import { http, HttpResponse } from 'msw'; import { API_GROUP, API_VERSION } from '@grafana/api-clients/rtkq/notifications.alerting/v0alpha1'; import { getAPIBaseURLForMocks } from '../../../../../../mocks/util.mjs'; "use strict"; function updateReceiverHandler(data) { return http.patch(getAPIBaseURLForMocks(API_GROUP, API_VERSION, "/receivers/:name"), function handler(info) { if (typeof data === "function") { return data(info); } return HttpResponse.json(data); }); } export { updateReceiverHandler }; //# sourceMappingURL=updateReceiverHandler.mjs.map