MCPcopy Create free account
hub / github.com/FeatureProbe/FeatureProbe / getTraffic

Function getTraffic

ui/src/services/toggle.ts:179–193  ·  view source on GitHub ↗
(projectKey: string, environmentKey: string, toggleKey: string, params: ITrafficParams)

Source from the content-addressed store, hash-verified

177};
178
179export const getTraffic = async<T> (projectKey: string, environmentKey: string, toggleKey: string, params: ITrafficParams) => {
180 const url = `${
181 API.trafficURI
182 .replace(':projectKey', projectKey)
183 .replace(':environmentKey', environmentKey)
184 .replace(':toggleKey', toggleKey)
185 }?${qs.stringify(params)}`;
186
187 return request<T>(url, {
188 method: 'GET',
189 headers: {
190 ...ApplicationJson()
191 },
192 });
193};
194
195export const checkToggleExist = async<T> (projectKey: string, params: IExistParams) => {
196 const url = `${

Callers 1

TrafficFunction · 0.90

Calls 2

ApplicationJsonFunction · 0.90
requestFunction · 0.85

Tested by

no test coverage detected