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
|
2014-10-24 00:08:55 +04:00
|
|
|
* @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
|
|
|
|
2016-12-06 23:09:40 +03:00
|
|
|
namespace OCA\Richdocuments\AppInfo;
|
2014-10-24 00:08:55 +04:00
|
|
|
|
2016-12-06 23:09:40 +03:00
|
|
|
return [
|
2015-08-26 19:09:34 +03:00
|
|
|
'routes' => [
|
2014-10-24 00:08:55 +04:00
|
|
|
//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'],
|
2016-12-06 23:09:40 +03:00
|
|
|
|
|
|
|
// 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'],
|
|
|
|
|
2014-10-26 15:47:56 +03:00
|
|
|
//settings
|
2016-03-15 01:34:29 +03:00
|
|
|
['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'],
|
2016-10-13 09:58:54 +03:00
|
|
|
['name' => 'settings#getSettings', 'url' => 'ajax/settings.php', 'verb' => 'GET'],
|
2015-08-26 19:09:34 +03:00
|
|
|
]
|
2016-12-06 23:09:40 +03:00
|
|
|
];
|