From cd2e1d0cfe69dbebfd2c30876987586026ffbea8 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Fri, 27 Sep 2013 15:54:18 +0200 Subject: [PATCH] Add patch method to OC_Route --- lib/private/route.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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 *