richdocuments/appinfo/routes.php

30 lines
919 B
PHP
Raw Normal View History

2013-08-07 21:14:36 +03:00
<?php
2013-08-08 00:22:21 +03:00
/**
2015-12-16 17:57:44 +03:00
* ownCloud - Richdocuments App
2013-08-08 00:22:21 +03:00
*
* @author Victor Dubiniuk
* @copyright 2013-2014 Victor Dubiniuk victor.dubiniuk@gmail.com
2013-08-08 00:22:21 +03:00
*
* This file is licensed under the Affero General Public License version 3 or
* later.
*/
2013-08-07 21:14:36 +03: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#publicPage', 'url' => '/public', 'verb' => 'GET'],
2015-08-26 19:09:34 +03:00
['name' => 'document#create', 'url' => 'ajax/documents/create', 'verb' => 'POST'],
// WOPI access
['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
]
];