Emojy reactions
This commit is contained in:
@@ -122,6 +122,15 @@ export const api = createApi({
|
||||
method: 'GET',
|
||||
}),
|
||||
}),
|
||||
|
||||
sendReaction: builder.mutation<void, { lessonId: string; reaction: string }>({
|
||||
query: ({ lessonId, reaction }) => ({
|
||||
url: `/lesson/reaction/${lessonId}`,
|
||||
method: 'POST',
|
||||
body: { reaction },
|
||||
}),
|
||||
}),
|
||||
|
||||
getCourseById: builder.query<PopulatedCourse, string>({
|
||||
query: (courseId) => `/course/${courseId}`,
|
||||
transformResponse: (response: BaseResponse<PopulatedCourse>) => response.body,
|
||||
|
||||
Reference in New Issue
Block a user