diff options
| author | Melonai <einebeere@gmail.com> | 2021-01-21 01:10:33 +0100 |
|---|---|---|
| committer | Melonai <einebeere@gmail.com> | 2021-01-21 01:10:33 +0100 |
| commit | ad3b208bfc17de1ac2e63e3ba5f2b7126de3b35e (patch) | |
| tree | 21e67645d2730f3468b4cb3438dae8ecd38ea17f /client/src/actions/shorten.ts | |
| parent | 72da387a292ac0e1934e72bbcc30042c82007bd0 (diff) | |
| download | shorest-ad3b208bfc17de1ac2e63e3ba5f2b7126de3b35e.tar.zst shorest-ad3b208bfc17de1ac2e63e3ba5f2b7126de3b35e.zip | |
Use proper API link 0.3.0
Diffstat (limited to 'client/src/actions/shorten.ts')
| -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", |
