From cd2e1d0cfe69dbebfd2c30876987586026ffbea8 Mon Sep 17 00:00:00 2001
From: Thomas Tanghus <thomas@tanghus.net>
Date: Fri, 27 Sep 2013 15:54:18 +0200
Subject: Add patch method to OC_Route

---
 lib/private/route.php | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'lib/private/route.php')

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
 	 *
-- 
cgit v1.2.3