From bd8fbef1e8e1b95cf77e26cd607a986c27c08fb9 Mon Sep 17 00:00:00 2001
From: Alberto Defendi <1369-ahl-berto@users.noreply.gitlab.inf.unibz.it>
Date: Sun, 23 May 2021 15:22:47 +0200
Subject: [PATCH] Set correct request type (get).

---
 src/components/AuthUser/Dashboard/ProfilePage/ProfilePage.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/AuthUser/Dashboard/ProfilePage/ProfilePage.tsx b/src/components/AuthUser/Dashboard/ProfilePage/ProfilePage.tsx
index bf86148..1f52c24 100644
--- a/src/components/AuthUser/Dashboard/ProfilePage/ProfilePage.tsx
+++ b/src/components/AuthUser/Dashboard/ProfilePage/ProfilePage.tsx
@@ -9,7 +9,7 @@ export const ProfilePage: FC = () => {
 
   const logout = (): void => {
     axios
-      .post('/api/web/login/logout')
+      .get('/api/web/login/logout')
       .then(() => history.replace(NonAuthRoutes.home));
   };
 
-- 
GitLab