(key: string)
| 3 | import { ApplicationJson } from 'constants/api/contentType'; |
| 4 | |
| 5 | export const getFromDictionary = async<T> (key: string) => { |
| 6 | const url = `${ |
| 7 | API.dictionaryURI |
| 8 | .replace(':key', key) |
| 9 | }`; |
| 10 | |
| 11 | return request<T>(url, { |
| 12 | method: 'GET', |
| 13 | headers: { |
| 14 | ...ApplicationJson() |
| 15 | }, |
| 16 | }); |
| 17 | }; |
| 18 | |
| 19 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 20 | export const saveDictionary = async (key: string, data: any) => { |
no test coverage detected