diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-07-25 17:45:29 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-07-25 17:45:29 +0200 |
commit | ac9dbd4b83852d137d35cb87911ebd6b21c494db (patch) | |
tree | 4199fab0da3990e1f45b4acbefef4dd104f00c4f /lib/route.php | |
parent | 0040b7109f1201805d9e4ac7e586b44261c335a4 (diff) | |
download | nextcloud-server-ac9dbd4b83852d137d35cb87911ebd6b21c494db.tar.gz nextcloud-server-ac9dbd4b83852d137d35cb87911ebd6b21c494db.zip |
Add functions for the common HTTP methods
Diffstat (limited to 'lib/route.php')
-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); |