diff --git a/js/register.js b/js/register.js index 80dc15f..db0420e 100644 --- a/js/register.js +++ b/js/register.js @@ -52,7 +52,7 @@ form.addEventListener("submit", async function (event) { //CHECKS IF A USERNAME IS TAKEN async function isUnameTaken() { - const response = await fetch(`../api/users/${uname}/`); + const response = await fetch(`/api/users/${uname}/`); const isTaken = await response.json(); //YES THIS IS CONFUSING I KNOW.