mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-30 00:09:10 -04:00
* Added test for rest::request_method().
* Implemented delete in comment.
This commit is contained in:
@@ -103,7 +103,8 @@ class Comments_Controller extends REST_Controller {
|
||||
* @see Rest_Controller::_delete($resource)
|
||||
*/
|
||||
public function _delete($comment) {
|
||||
rest::http_status(rest::METHOD_NOT_ALLOWED);
|
||||
$comment->delete();
|
||||
rest::http_status(rest::OK);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user