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

Function getTargeting

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

Source from the content-addressed store, hash-verified

37};
38
39export const getTargeting = async<T> (projectKey: string, environmentKey: string, toggleKey: string) => {
40 const url = `${
41 API.targetingURI
42 .replace(':projectKey', projectKey)
43 .replace(':environmentKey', environmentKey)
44 .replace(':toggleKey', toggleKey)
45 }`;
46
47 return request<T>(url, {
48 method: 'GET',
49 headers: {
50 ...ApplicationJson()
51 },
52 });
53};
54
55export const saveToggle = async (projectKey: string, environmentKey: string, toggleKey: string, data: ITargetingParams) => {
56 const url = `${

Callers 1

ToggleDetailFunction · 0.90

Calls 2

ApplicationJsonFunction · 0.90
requestFunction · 0.85

Tested by

no test coverage detected