export const coursesRoutes = {
  base: () => '/courses',
  detail: (id: string | number) => `${coursesRoutes.base()}/${id}`,
  lesson: (courseId: string | number, lessonId: string | number, tag: string) =>
    `${coursesRoutes.detail(courseId)}/lessons/${lessonId}?tag=${tag}`,
  completion: (id: string | number) => `${coursesRoutes.detail(id)}/completion`,
  sign: (id: string | number) => `${coursesRoutes.detail(id)}/sign`,
};
