]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add patch method to OC_Route
authorThomas Tanghus <thomas@tanghus.net>
Fri, 27 Sep 2013 13:54:18 +0000 (15:54 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Tue, 1 Oct 2013 18:13:13 +0000 (20:13 +0200)
lib/private/route.php

index 5901717c094430c54b81fd53b3090ad890895d11..fb7da456b62da5b26becf0d19bcf470169f548ad 100644 (file)
@@ -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
         *