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

Function createToggle

ui/src/services/toggle.ts:89–102  ·  view source on GitHub ↗
(projectKey: string, data: IToggle)

Source from the content-addressed store, hash-verified

87};
88
89export const createToggle = async (projectKey: string, data: IToggle) => {
90 const url = `${
91 API.createToggleURI
92 .replace(':projectKey', projectKey)
93 }`;
94
95 return request(url, {
96 method: 'POST',
97 headers: {
98 ...ApplicationJson()
99 },
100 body: JSON.stringify(data),
101 });
102};
103
104export const editToggle = async (projectKey: string, toggleKey: string, data: IEditToggleParams) => {
105 const url = `${

Callers 1

DrawerFunction · 0.90

Calls 2

ApplicationJsonFunction · 0.90
requestFunction · 0.85

Tested by

no test coverage detected