diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-09-27 15:54:18 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-09-30 15:35:07 +0200 |
commit | 35fae7aaf831fcc60903e15275c82c81ed734ed8 (patch) | |
tree | 5cc7ef2d43799b0cc0cd1d94cffff554b7535f80 | |
parent | 50fc5e8792a7870268f2e4c6fddc3cf4c432fe3c (diff) | |
download | nextcloud-server-35fae7aaf831fcc60903e15275c82c81ed734ed8.tar.gz nextcloud-server-35fae7aaf831fcc60903e15275c82c81ed734ed8.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 |