(projectKey: string)
| 170 | }; |
| 171 | |
| 172 | export const getProjectApprovalSettings = async<T> (projectKey: string) => { |
| 173 | const url = `${ |
| 174 | API.projectApprovalSetting |
| 175 | .replace(':projectKey', projectKey) |
| 176 | }`; |
| 177 | |
| 178 | return request<T>(url, { |
| 179 | method: 'GET', |
| 180 | headers: { |
| 181 | ...ApplicationJson() |
| 182 | }, |
| 183 | }); |
| 184 | }; |
| 185 | |
| 186 | export const saveSettings = async<T> (projectKey: string, data: ISettings) => { |
| 187 | const url = `${ |
no test coverage detected