synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
16 lines (15 loc) • 647 B
JavaScript
import { MOCK_REALM_PRINCIPAL as n, MOCK_REALM as l } from "../../realm/mockRealmPrincipal.js";
import { http as e, HttpResponse as t } from "msw";
const o = (r) => e.get(`${r}/repo/v1/realm/:id`, () => t.json(l)), p = (r) => e.get(`${r}/repo/v1/realm/principals`, () => t.json(n)), a = (r) => e.get(`${r}/repo/v1/realm/:realmId/principals`, () => t.json(n)), R = (r) => [
// More specific routes must come before the wildcard `:id` handler
p(r),
a(r),
o(r)
];
export {
o as getRealmByIdHandler,
R as getRealmHandlers,
a as getRealmPrincipalsByIdHandler,
p as getRealmPrincipalsHandler
};
//# sourceMappingURL=realmHandlers.js.map