Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Fix backward compatibility with upload API
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Apr 2, 2015
1 parent 4ba5ca7 commit 2d871a4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions core/controllers/api/SystemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,24 @@ public function postAction()
);
}

/**
* The put action handles PUT requests and receives an 'id' parameter; it
* should update the server resource state of the resource identified by
* the 'id' value.
*/
public function putAction()
{
$apiFunctions = array(
'upload' => 'uploadPerform',
);
$this->_genericAction(
$this->_request->getParams(),
$this->_request->getControllerName(),
'put',
$apiFunctions
);
}

/**
* The options action handles OPTIONS requests; it should respond with
* the HTTP methods that the server supports for specified URL.
Expand Down

0 comments on commit 2d871a4

Please sign in to comment.