From 0539f876f66dd05a1e8da882e79640491b02e0da Mon Sep 17 00:00:00 2001 From: Imbus Date: Thu, 14 Dec 2023 19:01:00 +0100 Subject: [PATCH] Initial API draft --- src/util/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/api.ts b/src/util/api.ts index 43536d3..710e195 100644 --- a/src/util/api.ts +++ b/src/util/api.ts @@ -24,7 +24,7 @@ export interface AuthResponse { } export async function getPosts(): Promise { - const res = await fetch("/api/posts"); + const res = await fetch(URL + "/api/posts"); const data = await res.json(); return data; }