oui
This commit is contained in:
@@ -87,14 +87,14 @@ export class LoginWindow extends fenetre {
|
||||
}
|
||||
|
||||
async connexion() {
|
||||
const response = await fetch("/api/login", {
|
||||
const response = await fetch("/api/auth/login", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
body: JSON.stringify({
|
||||
username: "nom",
|
||||
password: "a"
|
||||
username: this.username.value,
|
||||
password: this.password.value
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user