diff options
-rw-r--r-- | lib/route.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/route.php b/lib/route.php index 4344c977113..0d3339add6c 100644 --- a/lib/route.php +++ b/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); |