From b0d6d30705679fdc6ccaad06a7c33ff99d65a4fb 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/route.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/route.php b/lib/route.php index 5901717c094..fb7da456b62 100644 --- a/lib/route.php +++ b/lib/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 * -- 2.39.5