From cd7da25eae1a5007cd17abeecedfc9f28ec66192 Mon Sep 17 00:00:00 2001 From: Shahul Hameed <10547529+shahthepro@users.noreply.github.com> Date: Fri, 25 Aug 2023 08:15:29 +0400 Subject: [PATCH] Revert "Fix allocations endpoint" --- lib/allocation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/allocation.ts b/lib/allocation.ts index 6e9f2e3..93a6e96 100644 --- a/lib/allocation.ts +++ b/lib/allocation.ts @@ -1,5 +1,5 @@ export async function fetchAllocation() { - const endpoint = `${process.env.NEXT_PUBLIC_ANALYTICS_ENDPOINT}/api/v2/strategies`; + const endpoint = `${process.env.NEXT_PUBLIC_ANALYTICS_ENDPOINT}/api/v1/strategies?structured=true`; const response = await fetch(endpoint); if (!response.ok) { throw new Error("Failed to fetch allocation");