Compare commits

..

2 Commits

Author SHA1 Message Date
Jevinca Marvella
05bc9c9f82 Frontend 2025-11-17 11:35:10 +07:00
Jevinca Marvella
0b2caf822d Frontend 2025-11-17 09:31:45 +07:00
3 changed files with 1 additions and 16 deletions

View File

@ -1,15 +0,0 @@
const BASE_URL = "http://localhost:3000/api";
export async function registerRequest(username, password) {
try {
const response = await fetch(`${BASE_URL}/register`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ username, password })
});
return await response.json();
} catch (err) {
console.error("API register error:", err);
throw err;
}
}

0
Modal Register.js Normal file
View File

View File

@ -44,7 +44,7 @@
</form> </form>
<div class="register-link"> <div class="register-link">
Already have an account? Already Have An Account?
<a href="Login.html" id="loginLink">Login</a> <a href="Login.html" id="loginLink">Login</a>
</div> </div>
</div> </div>