From 54fab32116f62993c299a42160c258a9f817dc40 Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 18 Jul 2021 10:51:36 -0700 Subject: [PATCH] bug squah --- login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login.js b/login.js index ae58623..2a905d3 100644 --- a/login.js +++ b/login.js @@ -9,7 +9,7 @@ form.addEventListener("submit", async function(event) { uname = formData.get('uname'); pin = formData.get('pin'); - const response = await fetch(`/users/${uname}/${pin}`); + const response = await fetch(`/api/users/${uname}/${pin}`); const loginInfo = await response.json(); if (loginInfo.status === "ok") {