Compare commits
2 Commits
12636e9676
...
05bc9c9f82
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
05bc9c9f82 | ||
|
|
0b2caf822d |
@ -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
0
Modal Register.js
Normal file
@ -44,7 +44,7 @@
|
||||
</form>
|
||||
|
||||
<div class="register-link">
|
||||
Already have an account?
|
||||
Already Have An Account?
|
||||
<a href="Login.html" id="loginLink">Login</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user