integrated redux library

This commit is contained in:
Nikolai Petukhov
2024-10-16 23:40:34 +03:00
parent fde1f8ecfe
commit 59d4a44079
2 changed files with 35 additions and 21 deletions

View File

@@ -25,13 +25,11 @@ export const apiSlice = createApi({
query: (username) => `/chat/list/${username}`,
}),
postChat: builder.mutation({
query: (body) => ({
url: '/chat/post',
query: ({ id1, id2 }) => ({
url: `/chat/item/${id1}/${id2}`,
method: 'POST',
body,
}),
}),
// Add more endpoints as needed
}),
});