diff options
| -rw-r--r-- | client/src/actions/shorten.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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<ShortenResponse> { let body; try { - const response = await fetch("http://localhost:4000/", { + const response = await fetch("/", { headers: { Accept: "application/json", "Content-Type": "application/json", |
