fix api endpoint
This commit is contained in:
parent
9e1c2c9504
commit
29b9d7a853
@ -30,7 +30,7 @@ export const api = createApi({
|
|||||||
invalidatesTags: ['Lesson']
|
invalidatesTags: ['Lesson']
|
||||||
}),
|
}),
|
||||||
lessonById: builder.query<BaseResponse<Lesson>, string>({
|
lessonById: builder.query<BaseResponse<Lesson>, string>({
|
||||||
query: (lessonId: string) => `/api/lesson/${lessonId}`
|
query: (lessonId: string) => `/lesson/${lessonId}`
|
||||||
}),
|
}),
|
||||||
createAccessCode: builder.query<BaseResponse<AccessCode>, { lessonId: string }>({
|
createAccessCode: builder.query<BaseResponse<AccessCode>, { lessonId: string }>({
|
||||||
query: ({ lessonId }) => ({
|
query: ({ lessonId }) => ({
|
||||||
|
Loading…
Reference in New Issue
Block a user