()
| 77 | // GET /networks |
| 78 | // https://templates.subquery.network/networks |
| 79 | export async function fetchNetworks(): Promise<Template[]> { |
| 80 | try { |
| 81 | const res = await axiosInstance.get<{results: Template[]}>('/networks'); |
| 82 | return res.data.results; |
| 83 | } catch (e) { |
| 84 | throw errorHandle(e, `Update to reach endpoint '${BASE_TEMPLATE_URl}/networks`); |
| 85 | } |
| 86 | } |
| 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( |
no test coverage detected