diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-19 11:42:27 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-19 11:42:40 +0200 |
commit | 3e9a13efc9d95aac61191481fc9b90cfe3ca6e41 (patch) | |
tree | ff252c7c2a378de265831a144b9e407d4d23d276 /controller | |
parent | d328d409986a4e8c504fe65c3bf7c5b445b21814 (diff) |
added skeletons for google reader import
Diffstat (limited to 'controller')
-rw-r--r-- | controller/feedcontroller.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/controller/feedcontroller.php b/controller/feedcontroller.php index 11cb60d5e..09f638170 100644 --- a/controller/feedcontroller.php +++ b/controller/feedcontroller.php @@ -196,4 +196,22 @@ class FeedController extends Controller { } + /** + * @IsAdminExemption + * @IsSubAdminExemption + * @Ajax + */ + public function importGoogleReader() { + $json = $this->params('json'); + $userId = $this->api->getUserId(); + + $feed = $this->feedBusinessLayer->importGoogleReaderJSON($json, $userId); + + $params = array( + 'feeds' => array($feed) + ); + return $this->renderJSON($params); + } + + }
\ No newline at end of file |