(projectKey: string, environmentKey: string, toggleKey: string)
| 21 | }; |
| 22 | |
| 23 | export const getToggleInfo = async<T> (projectKey: string, environmentKey: string, toggleKey: string) => { |
| 24 | const url = `${ |
| 25 | API.getToggleInfoURI |
| 26 | .replace(':projectKey', projectKey) |
| 27 | .replace(':environmentKey', environmentKey) |
| 28 | .replace(':toggleKey', toggleKey) |
| 29 | }`; |
| 30 | |
| 31 | return request<T>(url, { |
| 32 | method: 'GET', |
| 33 | headers: { |
| 34 | ...ApplicationJson() |
| 35 | }, |
| 36 | }); |
| 37 | }; |
| 38 | |
| 39 | export const getTargeting = async<T> (projectKey: string, environmentKey: string, toggleKey: string) => { |
| 40 | const url = `${ |
no test coverage detected