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

Function addTag

ui/src/services/toggle.ts:164–177  ·  view source on GitHub ↗
(projectKey: string, data: ITag)

Source from the content-addressed store, hash-verified

162};
163
164export const addTag = async (projectKey: string, data: ITag) => {
165 const url = `${
166 API.tagsURI
167 .replace(':projectKey', projectKey)
168 }`;
169
170 return request(url, {
171 method: 'POST',
172 headers: {
173 ...ApplicationJson()
174 },
175 body: JSON.stringify(data),
176 });
177};
178
179export const getTraffic = async<T> (projectKey: string, environmentKey: string, toggleKey: string, params: ITrafficParams) => {
180 const url = `${

Callers 1

DrawerFunction · 0.90

Calls 2

ApplicationJsonFunction · 0.90
requestFunction · 0.85

Tested by

no test coverage detected