aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/apiController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/apiController.php')
-rwxr-xr-xapp/controllers/apiController.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/controllers/apiController.php b/app/controllers/apiController.php
index 88b968cb9..5ef0f5b03 100755
--- a/app/controllers/apiController.php
+++ b/app/controllers/apiController.php
@@ -1,18 +1,19 @@
<?php
class apiController extends ActionController {
- public function getFavoritesAction () {
+ public function firstAction() {
header('Content-type: application/json');
$this->view->_useLayout (false);
+ }
+ public function getFavoritesAction () {
$entryDAO = new EntryDAO ();
$entryDAO->_nbItemsPerPage (-1);
$entries_tmp = $entryDAO->listFavorites ('all', 'low_to_high');
$entries = array ();
-
foreach ($entries_tmp as $e) {
$author = $e->author ();
$feed = $e->feed (true);
@@ -32,7 +33,10 @@ class apiController extends ActionController {
$entries[$id]['url'] = $e->link ();
$entries[$id]['type'] = 'url';
}
-
+
$this->view->entries = $entries;
}
+
+ public function getNbNotReadAction() {
+ }
}