diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-06-12 20:32:39 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-06-12 20:32:49 +0200 |
commit | 73c02fdaa62dba2f7d6afa2a8eaad6a04b5634d4 (patch) | |
tree | 557ba1b4067212f4826927197272542a2091fd3e /external | |
parent | 836c65b6fa7e9a90f9baf421713641dfcb7a90aa (diff) |
adjust routes for new api
Diffstat (limited to 'external')
-rw-r--r-- | external/feedapi.php | 5 | ||||
-rw-r--r-- | external/folderapi.php | 5 | ||||
-rw-r--r-- | external/itemapi.php | 11 | ||||
-rw-r--r-- | external/newsapi.php | 4 |
4 files changed, 24 insertions, 1 deletions
diff --git a/external/feedapi.php b/external/feedapi.php index b9dad00d2..f2f02831a 100644 --- a/external/feedapi.php +++ b/external/feedapi.php @@ -59,6 +59,7 @@ class FeedAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function getAll() { @@ -86,6 +87,7 @@ class FeedAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function create() { @@ -121,6 +123,7 @@ class FeedAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function delete() { @@ -140,6 +143,7 @@ class FeedAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function read() { @@ -155,6 +159,7 @@ class FeedAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function move() { diff --git a/external/folderapi.php b/external/folderapi.php index 3a8b7ea6f..237f23660 100644 --- a/external/folderapi.php +++ b/external/folderapi.php @@ -55,6 +55,7 @@ class FolderAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function getAll() { @@ -74,6 +75,7 @@ class FolderAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function create() { @@ -99,6 +101,7 @@ class FolderAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function delete() { @@ -118,6 +121,7 @@ class FolderAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function update() { @@ -143,6 +147,7 @@ class FolderAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function read() { diff --git a/external/itemapi.php b/external/itemapi.php index 611a51fd2..2d484ce7b 100644 --- a/external/itemapi.php +++ b/external/itemapi.php @@ -50,6 +50,7 @@ class ItemAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function getAll() { @@ -90,6 +91,7 @@ class ItemAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function getUpdated() { @@ -148,6 +150,7 @@ class ItemAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function read() { @@ -158,6 +161,7 @@ class ItemAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function unread() { @@ -168,6 +172,7 @@ class ItemAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function star() { @@ -178,6 +183,7 @@ class ItemAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function unstar() { @@ -188,6 +194,7 @@ class ItemAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function readAll() { @@ -218,6 +225,7 @@ class ItemAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function readMultiple() { @@ -228,6 +236,7 @@ class ItemAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function unreadMultiple() { @@ -255,6 +264,7 @@ class ItemAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function starMultiple() { @@ -265,6 +275,7 @@ class ItemAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function unstarMultiple() { diff --git a/external/newsapi.php b/external/newsapi.php index bb3e3bc28..4a2e16fa3 100644 --- a/external/newsapi.php +++ b/external/newsapi.php @@ -28,6 +28,7 @@ namespace OCA\News\External; use \OCA\AppFramework\Core\API; use \OCA\AppFramework\Controller\Controller; use \OCA\AppFramework\Http\Request; +use \OCA\AppFramework\Http\JSONResponse; class NewsAPI extends Controller { @@ -41,11 +42,12 @@ class NewsAPI extends Controller { /** * @IsAdminExemption * @IsSubAdminExemption + * @CSRFExemption * @Ajax */ public function version() { $version = $this->api->getAppValue('installed_version'); - return new NewsAPIResult(array('version' => $version)); + return new JSONResponse(array('version' => $version)); } |