public function getAction(Request $request, Lesson $lesson, $chapterSlug)
    {
        $this->checkPermission('OPEN', $lesson->getResourceNode(), [], true);

        $chapter = $this->chapterRepository->getChapterBySlug($chapterSlug, $lesson->getId());

        if (is_null($chapter)) {
            throw new NotFoundHttpException();
        }

        return new JsonResponse($this->chapterSerializer->serialize($chapter));
    }