commit
This commit is contained in:
parent
a2a6d9d11e
commit
4bb31eb679
3 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ export default function Home() {
|
||||||
async function fetchGames() {
|
async function fetchGames() {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
const response = await axios.post("http://leizour.fr:3000/api/v1/games/getall", { token: tokenLocal });
|
const response = await axios.post("https://leizour.fr:3000/api/v1/games/getall", { token: tokenLocal });
|
||||||
setGames(response.data);
|
setGames(response.data);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error fetching games:", error);
|
console.error("Error fetching games:", error);
|
||||||
|
|
|
@ -23,7 +23,7 @@ export default function Login() {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.post("http://leizour.fr:3000/api/v1/auth/login", {
|
const response = await axios.post("https://leizour.fr:3000/api/v1/auth/login", {
|
||||||
username: username,
|
username: username,
|
||||||
password: password
|
password: password
|
||||||
})
|
})
|
||||||
|
|
|
@ -24,14 +24,14 @@ export default function Register() {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.post("http://leizour.fr:3000/api/v1/auth/register", {
|
const response = await axios.post("https://leizour.fr:3000/api/v1/auth/register", {
|
||||||
username: username,
|
username: username,
|
||||||
name: name,
|
name: name,
|
||||||
lastname: lastname,
|
lastname: lastname,
|
||||||
password: password
|
password: password
|
||||||
})
|
})
|
||||||
|
|
||||||
const loginResponse = await axios.post("http://leizour.fr:3000/api/v1/auth/login", {
|
const loginResponse = await axios.post("https://leizour.fr:3000/api/v1/auth/login", {
|
||||||
username: username,
|
username: username,
|
||||||
password: password
|
password: password
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue