Skip to content

Commit

Permalink
Use proper API link
Browse files Browse the repository at this point in the history
  • Loading branch information
melnary committed Jan 21, 2021
1 parent 72da387 commit ad3b208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/actions/shorten.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ad3b208

Please sign in to comment.