AxL95 commited on
Commit
73b46a3
·
verified ·
1 Parent(s): 617cd21

Update frontend/src/App.js

Browse files
Files changed (1) hide show
  1. frontend/src/App.js +1 -1
frontend/src/App.js CHANGED
@@ -212,7 +212,7 @@ useEffect(() => {
212
  const handleLogout = async () => {
213
  try {
214
  // Appeler l'API de déconnexion
215
- await fetch('http://localhost:7860/api/logout', {
216
  method: 'POST',
217
  credentials: 'include',
218
  });
 
212
  const handleLogout = async () => {
213
  try {
214
  // Appeler l'API de déconnexion
215
+ await fetch('/api/logout', {
216
  method: 'POST',
217
  credentials: 'include',
218
  });