Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
fix updater url
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Posselt committed May 1, 2014
1 parent b78b3fe commit 8c58a41
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
array('name' => 'feed_api#move', 'url' => '/api/v1-2/feeds/{feedId}/move', 'verb' => 'PUT'), // FIXME: POST would be more correct
array('name' => 'feed_api#rename', 'url' => '/api/v1-2/feeds/{feedId}/rename', 'verb' => 'PUT'), // FIXME: POST would be more correct
array('name' => 'feed_api#read', 'url' => '/api/v1-2/feeds/{feedId}/read', 'verb' => 'PUT'), // FIXME: POST would be more correct
array('name' => 'feed_api#update', 'url' => '/api/v1-2/update', 'verb' => 'GET'),
array('name' => 'feed_api#update', 'url' => '/api/v1-2/feeds/update', 'verb' => 'GET'),

// items
array('name' => 'item_api#index', 'url' => '/api/v1-2/items', 'verb' => 'GET'),
Expand Down
2 changes: 0 additions & 2 deletions controller/apicontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public function version() {

/**
* @NoCSRFRequired
* @API
*/
public function beforeUpdate() {
$this->updater->beforeUpdate();
Expand All @@ -60,7 +59,6 @@ public function beforeUpdate() {

/**
* @NoCSRFRequired
* @API
*/
public function afterUpdate() {
$this->updater->afterUpdate();
Expand Down
1 change: 0 additions & 1 deletion controller/feedapicontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ public function fromAllUsers() {

/**
* @NoCSRFRequired
* @API
*/
public function update() {
$userId = $this->params('userId');
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/controller/ApiControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ public function testVersionAnnotations(){
}

public function testBeforeUpdateAnnotations(){
$annotations = array('NoCSRFRequired', 'API');
$annotations = array('NoCSRFRequired');
$this->assertAnnotations($this->newsAPI, 'beforeUpdate', $annotations);
}

public function testAfterUpdateAnnotations(){
$annotations = array('NoCSRFRequired', 'API');
$annotations = array('NoCSRFRequired');
$this->assertAnnotations($this->newsAPI, 'afterUpdate', $annotations);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/controller/FeedApiControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function testFromUsersAnnotations(){


public function testUpdateAnnotations(){
$annotations = array('NoCSRFRequired', 'API');
$annotations = array('NoCSRFRequired');
$this->assertAnnotations($this->feedAPI, 'update', $annotations);
}

Expand Down

0 comments on commit 8c58a41

Please sign in to comment.