diff options
| author | Melonai <einebeere@gmail.com> | 2021-02-02 17:55:48 +0100 |
|---|---|---|
| committer | Melonai <einebeere@gmail.com> | 2021-02-02 17:55:48 +0100 |
| commit | 18482c3c5169afba6353436fd06052092d54dc9f (patch) | |
| tree | 3dab48382f4fc4ce150efc8d9ed3d310c6dfe14d /client/src/actions/shorten.ts | |
| parent | f560480d30a7b3446799d4f0b3d9bb732a2f0983 (diff) | |
| parent | ad3b208bfc17de1ac2e63e3ba5f2b7126de3b35e (diff) | |
| download | shorest-18482c3c5169afba6353436fd06052092d54dc9f.tar.zst shorest-18482c3c5169afba6353436fd06052092d54dc9f.zip | |
Merge branch 'master' of https://github.com/Melonai/shorest
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", |
