MCPcopy Create free account
hub / github.com/FeatureProbe/FeatureProbe / getToggleInfo

Function getToggleInfo

ui/src/services/toggle.ts:23–37  ·  view source on GitHub ↗
(projectKey: string, environmentKey: string, toggleKey: string)

Source from the content-addressed store, hash-verified

21};
22
23export const getToggleInfo = async<T> (projectKey: string, environmentKey: string, toggleKey: string) => {
24 const url = `${
25 API.getToggleInfoURI
26 .replace(':projectKey', projectKey)
27 .replace(':environmentKey', environmentKey)
28 .replace(':toggleKey', toggleKey)
29 }`;
30
31 return request<T>(url, {
32 method: 'GET',
33 headers: {
34 ...ApplicationJson()
35 },
36 });
37};
38
39export const getTargeting = async<T> (projectKey: string, environmentKey: string, toggleKey: string) => {
40 const url = `${

Callers 5

ProjectLayoutFunction · 0.90
ToggleDetailFunction · 0.90
AccessToggleFunction · 0.90
AccessEventFunction · 0.90
ToggleItemFunction · 0.90

Calls 2

ApplicationJsonFunction · 0.90
requestFunction · 0.85

Tested by

no test coverage detected