diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-09-27 15:54:18 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-09-27 15:54:18 +0200 |
commit | b0d6d30705679fdc6ccaad06a7c33ff99d65a4fb (patch) | |
tree | 0771a9b3a8482f053f5843d929489832cd925092 | |
parent | d49e982ac8cb32830275e0086cc8e8e8a11a84b1 (diff) | |
download | nextcloud-server-b0d6d30705679fdc6ccaad06a7c33ff99d65a4fb.tar.gz nextcloud-server-b0d6d30705679fdc6ccaad06a7c33ff99d65a4fb.zip |
Add patch method to OC_Route
-rw-r--r-- | lib/route.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/route.php b/lib/route.php index 5901717c094..fb7da456b62 100644 --- a/lib/route.php +++ b/lib/route.php @@ -52,6 +52,14 @@ class OC_Route extends Route { } /** + * Specify PATCH as the method to use with this route + */ + public function patch() { + $this->method('PATCH'); + return $this; + } + + /** * Defaults to use for this route * * @param array $defaults The defaults |