Add functions for the common HTTP methods

remotes/origin/stable5
Bart Visscher 14 years ago
parent 0040b7109f
commit ac9dbd4b83
  1. 15
      lib/route.php

@ -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);

Loading…
Cancel
Save