fix api endpoint

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-03-01 11:54:12 +03:00
parent 9e1c2c9504
commit 29b9d7a853

View File

@ -30,7 +30,7 @@ export const api = createApi({
invalidatesTags: ['Lesson']
}),
lessonById: builder.query<BaseResponse<Lesson>, string>({
query: (lessonId: string) => `/api/lesson/${lessonId}`
query: (lessonId: string) => `/lesson/${lessonId}`
}),
createAccessCode: builder.query<BaseResponse<AccessCode>, { lessonId: string }>({
query: ({ lessonId }) => ({