diff options
author | Tom Needham <tom@owncloud.com> | 2012-07-30 12:44:34 +0000 |
---|---|---|
committer | Tom Needham <tom@owncloud.com> | 2012-07-30 12:44:34 +0000 |
commit | 9ffaea480fc77514ac1804ad3ca72487c7ba40e4 (patch) | |
tree | 67b4b6354a15e9f723a4754ea307fd89cf22b31f /lib/api.php | |
parent | 9072106048265ce144227605c8919104acf6d746 (diff) | |
download | nextcloud-server-9ffaea480fc77514ac1804ad3ca72487c7ba40e4.tar.gz nextcloud-server-9ffaea480fc77514ac1804ad3ca72487c7ba40e4.zip |
Add the format parameter inside OC_API
Diffstat (limited to 'lib/api.php')
-rw-r--r-- | lib/api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api.php b/lib/api.php index 2203d86ac94..c61f50c1bc9 100644 --- a/lib/api.php +++ b/lib/api.php @@ -40,7 +40,7 @@ class OC_API { public static function register($method, $url, $action){ $name = strtolower($method).$url; if(!isset(self::$actions[$name])){ - OC_Router::create($name, $url) + OC_Router::create($name, $url.'.{format}') ->action('OC_API', 'call'); self::$actions[$name] = array(); } |