(key: string, data: any)
| 18 | |
| 19 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 20 | export const saveDictionary = async (key: string, data: any) => { |
| 21 | const url = `${ |
| 22 | API.dictionaryURI |
| 23 | .replace(':key', key) |
| 24 | }`; |
| 25 | |
| 26 | return request(url, { |
| 27 | method: 'POST', |
| 28 | headers: { |
| 29 | ...ApplicationJson() |
| 30 | }, |
| 31 | body: JSON.stringify(data), |
| 32 | }); |
| 33 | }; |
no test coverage detected