From 50c22689e12ddd3353af3a0ec9c41b0ee8cc0dc8 Mon Sep 17 00:00:00 2001 From: Mateo_ForeroF <87267672+Naetffy@users.noreply.github.com> Date: Sat, 11 May 2024 07:20:42 -0500 Subject: [PATCH] Update NavBar.js --- src/components/Navbar/NavBar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Navbar/NavBar.js b/src/components/Navbar/NavBar.js index 1f995f0..898d741 100644 --- a/src/components/Navbar/NavBar.js +++ b/src/components/Navbar/NavBar.js @@ -48,7 +48,7 @@ const NavBar = () => { const handleLogout = async () => { try { - await apiClient.get('user/validate') + await apiClient.post('login/logout') .then((response) => { console.log(response); // Elimina la cookie de authToken @@ -111,4 +111,4 @@ const NavBar = () => { ); } -export default NavBar; \ No newline at end of file +export default NavBar;