MCPcopy Index your code
hub / github.com/FeatureProbe/FeatureProbe / getToggleList

Function getToggleList

ui/src/services/toggle.ts:9–21  ·  view source on GitHub ↗
(projectKey: string, params: IToggleParams)

Source from the content-addressed store, hash-verified

7import { ApplicationJson } from 'constants/api/contentType';
8
9export const getToggleList = async<T> (projectKey: string, params: IToggleParams) => {
10 const url = `${
11 API.getToggleListURI
12 .replace(':projectKey', projectKey)
13 }?${qs.stringify(params)}`;
14
15 return request<T>(url, {
16 method: 'GET',
17 headers: {
18 ...ApplicationJson()
19 },
20 });
21};
22
23export const getToggleInfo = async<T> (projectKey: string, environmentKey: string, toggleKey: string) => {
24 const url = `${

Callers 3

ProjectCardFunction · 0.90
ToggleFunction · 0.90
ToggleItemFunction · 0.85

Calls 2

ApplicationJsonFunction · 0.90
requestFunction · 0.85

Tested by

no test coverage detected