aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller/EntryController.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-30 07:50:52 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-30 07:50:52 +0100
commita8c90c5c1b60d0c258ce56f2a8e382859e70e8d3 (patch)
tree323d601e080df300671b0c80765b8d3a62814180 /src/Wallabag/CoreBundle/Controller/EntryController.php
parenta65f5d5563ba16a5c2096aab5571772d9f4b81ff (diff)
downloadwallabag-a8c90c5c1b60d0c258ce56f2a8e382859e70e8d3.tar.gz
wallabag-a8c90c5c1b60d0c258ce56f2a8e382859e70e8d3.tar.zst
wallabag-a8c90c5c1b60d0c258ce56f2a8e382859e70e8d3.zip
add documentation for API
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/EntryController.php')
-rw-r--r--src/Wallabag/CoreBundle/Controller/EntryController.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php
index c6c94462..25f18711 100644
--- a/src/Wallabag/CoreBundle/Controller/EntryController.php
+++ b/src/Wallabag/CoreBundle/Controller/EntryController.php
@@ -64,6 +64,8 @@ class EntryController extends Controller
64 public function showUnreadAction() 64 public function showUnreadAction()
65 { 65 {
66 $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries'); 66 $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries');
67 // TODO don't give the user ID like this
68 // TODO change pagination
67 $entries = $repository->findUnreadByUser(1, 0); 69 $entries = $repository->findUnreadByUser(1, 0);
68 70
69 return $this->render( 71 return $this->render(
@@ -81,6 +83,8 @@ class EntryController extends Controller
81 public function showArchiveAction() 83 public function showArchiveAction()
82 { 84 {
83 $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries'); 85 $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries');
86 // TODO don't give the user ID like this
87 // TODO change pagination
84 $entries = $repository->findArchiveByUser(1, 0); 88 $entries = $repository->findArchiveByUser(1, 0);
85 89
86 return $this->render( 90 return $this->render(
@@ -98,6 +102,8 @@ class EntryController extends Controller
98 public function showStarredAction() 102 public function showStarredAction()
99 { 103 {
100 $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries'); 104 $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries');
105 // TODO don't give the user ID like this
106 // TODO change pagination
101 $entries = $repository->findStarredByUser(1, 0); 107 $entries = $repository->findStarredByUser(1, 0);
102 108
103 return $this->render( 109 return $this->render(