Add functions for the common HTTP methods

remotes/origin/stable5
Bart Visscher 2012-07-25 17:45:29 +07:00
parent 0040b7109f
commit ac9dbd4b83
1 changed files with 15 additions and 0 deletions

@ -19,6 +19,21 @@ class OC_Route extends Route {
return $this;
}
public function get() {
$this->method('get');
return $this;
}
public function put() {
$this->method('put');
return $this;
}
public function delete() {
$this->method('delete');
return $this;
}
public function defaults($defaults) {
$action = $this->getDefault('action');
$this->setDefaults($defaults);