richdocuments/appinfo/routes.php

32 строки
1.1 KiB
PHP
Исходник Обычный вид История

2013-08-07 22:14:36 +04:00
<?php
2013-08-08 01:22:21 +04:00
/**
2015-12-16 17:57:44 +03:00
* ownCloud - Richdocuments App
2013-08-08 01:22:21 +04:00
*
* @author Victor Dubiniuk
* @copyright 2013-2014 Victor Dubiniuk victor.dubiniuk@gmail.com
2013-08-08 01:22:21 +04:00
*
* This file is licensed under the Affero General Public License version 3 or
* later.
*/
2013-08-07 22:14:36 +04:00
namespace OCA\Richdocuments\AppInfo;
return [
2015-08-26 19:09:34 +03:00
'routes' => [
//documents
2015-08-26 19:09:34 +03:00
['name' => 'document#index', 'url' => 'index', 'verb' => 'GET'],
['name' => 'document#create', 'url' => 'ajax/documents/create', 'verb' => 'POST'],
// WOPI access
['name' => 'wopi#getToken', 'url' => 'wopi/token/{fileId}', 'verb' => 'GET'],
['name' => 'wopi#checkFileInfo', 'url' => 'wopi/files/{fileId}', 'verb' => 'GET'],
['name' => 'wopi#getFile', 'url' => 'wopi/files/{fileId}/contents', 'verb' => 'GET'],
['name' => 'wopi#putFile', 'url' => 'wopi/files/{fileId}/contents', 'verb' => 'POST'],
//settings
['name' => 'settings#setSettings', 'url' => 'ajax/admin.php', 'verb' => 'POST'],
2015-08-26 19:09:34 +03:00
['name' => 'settings#getSupportedMimes', 'url' => 'ajax/mimes.php', 'verb' => 'GET'],
['name' => 'settings#getSettings', 'url' => 'ajax/settings.php', 'verb' => 'GET'],
2015-08-26 19:09:34 +03:00
]
];