diff --git a/public/index.html b/public/index.html index 9919618..23034da 100644 --- a/public/index.html +++ b/public/index.html @@ -53,7 +53,7 @@ const endpoint = isRegisterMode ? '/auth/register' : '/auth/login'; try { - const response = await fetch(`http://localhost:5003${endpoint}`, { + const response = await fetch(endpoint, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ username, password })