- /**
- * Get the progress of an entry.
- *
- * @param Entry $entry
- *
- * @Route("/progress/{entry}", name="get_progress")
- *
- * @return JsonResponse
- */
- public function getEntriesProgressAction(Entry $entry)
- {
- $this->checkUserAction($entry);
-
- $json = $this->get('serializer')->serialize($entry->getProgress(), 'json');
-
- return (new JsonResponse())->setJson($json);
- }
-