diff --git a/lib/private/route.php b/lib/private/route.php index 5901717c09..fb7da456b6 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 *