(projectKey: string, toggleKey: string)
| 118 | }; |
| 119 | |
| 120 | export 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 | |
| 135 | export const restoreToggle = async (projectKey: string, toggleKey: string) => { |
| 136 | const url = `${ |
no test coverage detected