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