diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-09-27 15:54:18 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-10-01 20:13:13 +0200 |
commit | cd2e1d0cfe69dbebfd2c30876987586026ffbea8 (patch) | |
tree | 5bed47ca46ecfbb2311ecb701ea16039718fa272 | |
parent | bdad7697ac333ea442b79b5e0e00f90ad5398bc9 (diff) | |
download | nextcloud-server-cd2e1d0cfe69dbebfd2c30876987586026ffbea8.tar.gz nextcloud-server-cd2e1d0cfe69dbebfd2c30876987586026ffbea8.zip |
Add patch method to OC_Route
-rw-r--r-- | lib/private/route.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/route.php b/lib/private/route.php index 5901717c094..fb7da456b62 100644 --- a/lib/private/route.php +++ b/lib/private/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 |