Jelajahi Sumber

Update api.tsx

logout oneliner
sunguroku 5 tahun lalu
induk
melakukan
f19e492bf2
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      dashboard/src/shared/api.tsx

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

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