( familyCode: string, networkCode: string )
| 87 | |
| 88 | // The family query param must be an exact case-insensitive match otherwise an empty result will be returned |
| 89 | export async function fetchExampleProjects( |
| 90 | familyCode: string, |
| 91 | networkCode: string |
| 92 | ): Promise<ExampleProjectInterface[]> { |
| 93 | try { |
| 94 | const res = await axiosInstance.get<{results: ExampleProjectInterface[]}>(`/networks/${familyCode}/${networkCode}`); |
| 95 | return res.data.results; |
| 96 | } catch (e) { |
| 97 | throw errorHandle(e, `Update to reach endpoint ${familyCode}/${networkCode}`); |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | export async function cloneProjectGit( |
| 102 | localPath: string, |
no test coverage detected