2019-03-18 19:15:31 +03:00
|
|
|
<?php
|
2020-12-29 17:20:31 +03:00
|
|
|
|
2019-03-18 19:15:31 +03:00
|
|
|
declare(strict_types=1);
|
2019-06-17 13:49:31 +03:00
|
|
|
/**
|
|
|
|
* @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
|
|
|
|
*
|
|
|
|
* @author Julius Härtl <jus@bitgrid.net>
|
|
|
|
*
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
2019-03-18 19:15:31 +03:00
|
|
|
|
|
|
|
namespace OCA\Text\AppInfo;
|
|
|
|
|
2023-06-13 19:09:11 +03:00
|
|
|
use OCA\Text\Controller;
|
|
|
|
|
2019-03-18 19:15:31 +03:00
|
|
|
return [
|
|
|
|
'routes' => [
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\AttachmentController::insertAttachmentFile() */
|
2022-08-23 13:44:08 +03:00
|
|
|
['name' => 'Attachment#insertAttachmentFile', 'url' => '/attachment/filepath', 'verb' => 'POST'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\AttachmentController::uploadAttachment() */
|
2022-08-23 13:44:08 +03:00
|
|
|
['name' => 'Attachment#uploadAttachment', 'url' => '/attachment/upload', 'verb' => 'POST'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\AttachmentController::getImageFile() */
|
2022-08-23 13:44:08 +03:00
|
|
|
['name' => 'Attachment#getImageFile', 'url' => '/image', 'verb' => 'GET'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\AttachmentController::getMediaFile() */
|
2022-08-23 13:44:08 +03:00
|
|
|
['name' => 'Attachment#getMediaFile', 'url' => '/media', 'verb' => 'GET'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\AttachmentController::getMediaFilePreview() */
|
2022-08-23 13:44:08 +03:00
|
|
|
['name' => 'Attachment#getMediaFilePreview', 'url' => '/mediaPreview', 'verb' => 'GET'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\AttachmentController::getMediaFileMetadata() */
|
2022-08-23 13:44:08 +03:00
|
|
|
['name' => 'Attachment#getMediaFileMetadata', 'url' => '/mediaMetadata', 'verb' => 'GET'],
|
2021-10-20 13:18:17 +03:00
|
|
|
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\SessionController::create() */
|
2020-11-18 23:42:51 +03:00
|
|
|
['name' => 'Session#create', 'url' => '/session/create', 'verb' => 'PUT'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\SessionController::sync() */
|
2019-05-08 18:45:16 +03:00
|
|
|
['name' => 'Session#sync', 'url' => '/session/sync', 'verb' => 'POST'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\SessionController::push() */
|
2019-04-13 21:28:28 +03:00
|
|
|
['name' => 'Session#push', 'url' => '/session/push', 'verb' => 'POST'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\SessionController::close() */
|
2020-11-18 23:42:51 +03:00
|
|
|
['name' => 'Session#close', 'url' => '/session/close', 'verb' => 'POST'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\SessionController::mention() */
|
2022-08-25 09:03:43 +03:00
|
|
|
['name' => 'Session#mention', 'url' => '/session/mention', 'verb' => 'PUT'],
|
2019-05-14 10:34:30 +03:00
|
|
|
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\PublicSessionController::create() */
|
2020-11-18 23:42:51 +03:00
|
|
|
['name' => 'PublicSession#create', 'url' => '/public/session/create', 'verb' => 'PUT'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\PublicSessionController::updateSession() */
|
2019-06-15 00:26:12 +03:00
|
|
|
['name' => 'PublicSession#updateSession', 'url' => '/public/session', 'verb' => 'POST'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\PublicSessionController::sync() */
|
2019-05-14 10:34:30 +03:00
|
|
|
['name' => 'PublicSession#sync', 'url' => '/public/session/sync', 'verb' => 'POST'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\PublicSessionController::push() */
|
2019-05-14 10:34:30 +03:00
|
|
|
['name' => 'PublicSession#push', 'url' => '/public/session/push', 'verb' => 'POST'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\PublicSessionController::close() */
|
2020-11-18 23:42:51 +03:00
|
|
|
['name' => 'PublicSession#close', 'url' => '/public/session/close', 'verb' => 'POST'],
|
2019-12-06 16:09:18 +03:00
|
|
|
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\SettingsController::updateConfig() */
|
2019-12-06 16:09:18 +03:00
|
|
|
['name' => 'Settings#updateConfig', 'url' => '/settings', 'verb' => 'POST'],
|
2022-07-23 21:35:32 +03:00
|
|
|
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\UserApiController::index() */
|
2022-07-23 21:35:32 +03:00
|
|
|
['name' => 'UserApi#index', 'url' => '/api/v1/users', 'verb' => 'POST'],
|
2019-10-25 12:32:49 +03:00
|
|
|
],
|
|
|
|
'ocs' => [
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\WorkspaceController::folder() */
|
2019-10-25 12:32:49 +03:00
|
|
|
['name' => 'Workspace#folder', 'url' => '/workspace', 'verb' => 'GET'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\WorkspaceController::publicFolder() */
|
2019-10-25 12:32:49 +03:00
|
|
|
['name' => 'Workspace#publicFolder', 'url' => '/public/workspace', 'verb' => 'GET'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\WorkspaceController::direct() */
|
2019-11-28 11:18:47 +03:00
|
|
|
['name' => 'Workspace#direct', 'url' => '/workspace/direct', 'verb' => 'POST'],
|
2019-03-18 19:15:31 +03:00
|
|
|
]
|
|
|
|
];
|