(limit: number)
| 135 | }; |
| 136 | }; |
| 137 | export const fetchModelsData = (limit: number) => { |
| 138 | return (dispatch: any) => { |
| 139 | const project_base_url = 'api/v1' |
| 140 | dispatch(fetchModelRequest()); |
| 141 | request.get(`${project_base_url}/models?limit=${limit}`) |
| 142 | .then(response => { |
| 143 | dispatch(fetchModelSuccess(response)); |
| 144 | }) |
| 145 | .catch(error => { |
| 146 | dispatch(fetchModelFailure(error.message)); |
| 147 | }); |
| 148 | }; |
| 149 | }; |
| 150 | export const fetchApikeysData = (limit: number) => { |
| 151 | return (dispatch: any) => { |
| 152 | const project_base_url = 'api/v1' |
no test coverage detected