Skip to content

Commit

Permalink
Relativize URL
Browse files Browse the repository at this point in the history
  • Loading branch information
smattingly committed Aug 15, 2021
1 parent 58a8c45 commit 422e295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/pages/visit/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h1>Visits</h1>
const visitsEl = document.getElementById("table-body");

const getVisits = async (page, limit) => {
const API_URL = `/visit?page=${page}&limit=${limit}`;
const API_URL = `./visit?page=${page}&limit=${limit}`;
const response = await fetch(API_URL, {
headers: { Accept: "application/json" },
});
Expand Down

0 comments on commit 422e295

Please sign in to comment.