summaryrefslogtreecommitdiffstats
path: root/controller
diff options
context:
space:
mode:
Diffstat (limited to 'controller')
-rw-r--r--controller/feedcontroller.php18
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