From: Thomas Tanghus Date: Fri, 27 Sep 2013 13:54:18 +0000 (+0200) Subject: Add patch method to OC_Route X-Git-Tag: v6.0.0alpha2~93^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cd2e1d0cfe69dbebfd2c30876987586026ffbea8;p=nextcloud-server.git Add patch method to OC_Route --- 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 @@ -51,6 +51,14 @@ class OC_Route extends Route { return $this; } + /** + * Specify PATCH as the method to use with this route + */ + public function patch() { + $this->method('PATCH'); + return $this; + } + /** * Defaults to use for this route *