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

Function editToggle

ui/src/services/toggle.ts:104–118  ·  view source on GitHub ↗
(projectKey: string, toggleKey: string, data: IEditToggleParams)

Source from the content-addressed store, hash-verified

102};
103
104export const editToggle = async (projectKey: string, toggleKey: string, data: IEditToggleParams) => {
105 const url = `${
106 API.editToggleURI
107 .replace(':projectKey', projectKey)
108 .replace(':toggleKey', toggleKey)
109 }`;
110
111 return request(url, {
112 method: 'PATCH',
113 headers: {
114 ...ApplicationJson()
115 },
116 body: JSON.stringify(data),
117 });
118};
119
120export const offlineToggle = async (projectKey: string, toggleKey: string) => {
121 const url = `${

Callers 1

DrawerFunction · 0.90

Calls 2

ApplicationJsonFunction · 0.90
requestFunction · 0.85

Tested by

no test coverage detected