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

Function offlineToggle

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

Source from the content-addressed store, hash-verified

118};
119
120export const offlineToggle = async (projectKey: string, toggleKey: string) => {
121 const url = `${
122 API.offlineToggleURI
123 .replace(':projectKey', projectKey)
124 .replace(':toggleKey', toggleKey)
125 }`;
126
127 return request(url, {
128 method: 'PATCH',
129 headers: {
130 ...ApplicationJson()
131 },
132 });
133};
134
135export const restoreToggle = async (projectKey: string, toggleKey: string) => {
136 const url = `${

Callers 1

ToggleItemFunction · 0.90

Calls 2

ApplicationJsonFunction · 0.90
requestFunction · 0.85

Tested by

no test coverage detected