Update frontend/src/App.js
Browse files- 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('
|
| 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 |
});
|