about summary refs log tree commit diff
path: root/client/src/actions
diff options
context:
space:
mode:
authorMelonai <einebeere@gmail.com>2021-01-21 01:10:33 +0100
committerMelonai <einebeere@gmail.com>2021-01-21 01:10:33 +0100
commitad3b208bfc17de1ac2e63e3ba5f2b7126de3b35e (patch)
tree21e67645d2730f3468b4cb3438dae8ecd38ea17f /client/src/actions
parent72da387a292ac0e1934e72bbcc30042c82007bd0 (diff)
downloadshorest-ad3b208bfc17de1ac2e63e3ba5f2b7126de3b35e.tar.zst
shorest-ad3b208bfc17de1ac2e63e3ba5f2b7126de3b35e.zip
Use proper API link 0.3.0
Diffstat (limited to 'client/src/actions')
-rw-r--r--client/src/actions/shorten.ts2
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",