integrated redux library
This commit is contained in:
@@ -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
|
||||
}),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user