UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

16 lines (15 loc) 647 B
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