Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

339 B
Raw Blame
import fetchMock, { type UserRouteConfig } from "fetch-mock";

import type { ListOAuthAuthorizationsResponse } from "metabase-types/api";

export function setupOAuthAuthorizationsEndpoint(
  response: ListOAuthAuthorizationsResponse,
  options?: UserRouteConfig,
) {
  fetchMock.get("path:/api/oauth/authorizations", response, options);
}