Przeglądaj źródła

Update api.tsx

logout oneliner
sunguroku 5 lat temu
rodzic
commit
f19e492bf2
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      dashboard/src/shared/api.tsx

+ 1 - 1
dashboard/src/shared/api.tsx

@@ -21,7 +21,7 @@ const logInUser = baseApi<{
   password: string
 }>('POST', '/api/login');
 
-const logOutUser = baseApi('GET', '/api/logout');
+const logOutUser = baseApi('POST', '/api/logout');
 
 const getUser = baseApi<{}, { id: number }>('GET', pathParams => {
   return `/api/users/${pathParams.id}`;