join queue

This commit is contained in:
2024-04-22 00:48:39 +03:00
parent 227f1c5782
commit 2a696f96c1
9 changed files with 256 additions and 6 deletions

View File

@ -36,6 +36,9 @@ export const QueueApi = createApi({
getQueueDetail: builder.query({
query: (queueId: string | undefined) => `/${queueId}`,
}),
joinQueue: builder.mutation({
query: (queueId: string) => `/${queueId}/join`,
}),
createQueue: builder.mutation({
query: (data: CreateQueueRequest) => ({
url: "/",