UNPKG

@grafana/alerting

Version:

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

21 lines (16 loc) 649 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var msw = require('msw'); var v0alpha1 = require('@grafana/api-clients/rtkq/notifications.alerting/v0alpha1'); var util = require('../../../../../../mocks/util.cjs'); "use strict"; function getReceiverHandler(data) { return msw.http.get(util.getAPIBaseURLForMocks(v0alpha1.API_GROUP, v0alpha1.API_VERSION, "/receivers/:name"), function handler(info) { if (typeof data === "function") { return data(info); } return msw.HttpResponse.json(data); }); } exports.getReceiverHandler = getReceiverHandler; //# sourceMappingURL=getReceiverHandler.cjs.map