Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-07-25 19:45:29 +0400
committerBart Visscher <bartv@thisnet.nl>2012-07-25 19:45:29 +0400
commitac9dbd4b83852d137d35cb87911ebd6b21c494db (patch)
tree4199fab0da3990e1f45b4acbefef4dd104f00c4f /lib/route.php
parent0040b7109f1201805d9e4ac7e586b44261c335a4 (diff)
Add functions for the common HTTP methods
Diffstat (limited to 'lib/route.php')
-rw-r--r--lib/route.php15
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);