(url: string, data: any)
| 86 | } |
| 87 | |
| 88 | export const post = async (url: string, data: any) => { |
| 89 | try { |
| 90 | const response = await api.post(url, data); |
| 91 | return response.data; |
| 92 | }catch (e){ |
| 93 | return { |
| 94 | success: false, |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | export const page = async (url: string, params: any, sort: any, filter: any, match: { |
| 100 | key: string, |
no test coverage detected