From 71918a820f0e5b7e9479711107db059cd3a3b194 Mon Sep 17 00:00:00 2001
From: Bart Visscher <bartv@thisnet.nl>
Date: Tue, 31 Jul 2012 22:34:35 +0200
Subject: [PATCH] API: set request method for registered urls

---
 lib/api.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/api.php b/lib/api.php
index 515bab6714..203b07880f 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -43,6 +43,7 @@ class OC_API {
 		$name = str_replace(array('/', '{', '}'), '_', $name);
 		if(!isset(self::$actions[$name])){
 			OC::$router->create($name, $url.'.{_format}')
+				->method($method)
 				->defaults(array('_format' => 'xml'))
 				->requirements(array('_format' => 'xml|json'))
 				->action('OC_API', 'call');
-- 
GitLab