From ad3b208bfc17de1ac2e63e3ba5f2b7126de3b35e Mon Sep 17 00:00:00 2001 From: Melonai Date: Thu, 21 Jan 2021 01:10:33 +0100 Subject: Use proper API link --- client/src/actions/shorten.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src') diff --git a/client/src/actions/shorten.ts b/client/src/actions/shorten.ts index 58dd4f0..ca685c5 100644 --- a/client/src/actions/shorten.ts +++ b/client/src/actions/shorten.ts @@ -12,7 +12,7 @@ async function makeRequest(url: string): Promise { let body; try { - const response = await fetch("http://localhost:4000/", { + const response = await fetch("/", { headers: { Accept: "application/json", "Content-Type": "application/json", -- cgit 1.4.1