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

Function approveToggle

ui/src/services/toggle.ts:72–87  ·  view source on GitHub ↗
(projectKey: string, environmentKey: string, toggleKey: string, data: ITargetingParams)

Source from the content-addressed store, hash-verified

70};
71
72export const approveToggle = async (projectKey: string, environmentKey: string, toggleKey: string, data: ITargetingParams) => {
73 const url = `${
74 API.approvalTargetingURI
75 .replace(':projectKey', projectKey)
76 .replace(':environmentKey', environmentKey)
77 .replace(':toggleKey', toggleKey)
78 }`;
79
80 return request(url, {
81 method: 'POST',
82 headers: {
83 ...ApplicationJson()
84 },
85 body: JSON.stringify(data)
86 });
87};
88
89export const createToggle = async (projectKey: string, data: IToggle) => {
90 const url = `${

Callers 1

PublishModalFunction · 0.90

Calls 2

ApplicationJsonFunction · 0.90
requestFunction · 0.85

Tested by

no test coverage detected