+ /**
+ * List the entries with the same domain as the current one.
+ *
+ * @param int $page
+ *
+ * @Route("/same-domain/{id}/{page}", requirements={"id" = ".+"}, defaults={"page" = 1}, name="same_domain")
+ *
+ * @return \Symfony\Component\HttpFoundation\Response
+ */
+ public function getSameDomainEntries(Request $request, $page = 1)
+ {
+ if (!$this->get('craue_config')->get('share_public')) {
+ throw $this->createAccessDeniedException('Sharing an entry is disabled for this user.');
+ }
+
+ return $this->showEntries('same-domain', $request, $page);
+ }
+