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
|
|
|
/**
|
2024-05-03 18:53:07 +03:00
|
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2019-06-17 13:49:31 +03:00
|
|
|
*/
|
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-10-25 17:50:03 +03:00
|
|
|
/** @see Controller\AttachmentController::getAttachmentList() */
|
|
|
|
['name' => 'Attachment#getAttachmentList', 'url' => '/attachments', 'verb' => 'POST'],
|
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'],
|
2021-10-20 13:18:17 +03:00
|
|
|
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\SessionController::create() */
|
2023-11-28 18:13:37 +03:00
|
|
|
['name' => 'Session#create', 'url' => '/session/{documentId}/create', 'verb' => 'PUT'],
|
2023-06-30 00:21:16 +03:00
|
|
|
/** @see Controller\SessionController::save() */
|
2023-11-28 18:13:37 +03:00
|
|
|
['name' => 'Session#save', 'url' => '/session/{documentId}/save', 'verb' => 'POST'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\SessionController::sync() */
|
2023-11-28 18:13:37 +03:00
|
|
|
['name' => 'Session#sync', 'url' => '/session/{documentId}/sync', 'verb' => 'POST'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\SessionController::push() */
|
2023-11-28 18:13:37 +03:00
|
|
|
['name' => 'Session#push', 'url' => '/session/{documentId}/push', 'verb' => 'POST'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\SessionController::close() */
|
2023-11-28 18:13:37 +03:00
|
|
|
['name' => 'Session#close', 'url' => '/session/{documentId}/close', 'verb' => 'POST'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\SessionController::mention() */
|
2023-11-28 18:13:37 +03:00
|
|
|
['name' => 'Session#mention', 'url' => '/session/{documentId}/mention', 'verb' => 'PUT'],
|
2019-05-14 10:34:30 +03:00
|
|
|
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\PublicSessionController::create() */
|
2023-11-28 18:13:37 +03:00
|
|
|
['name' => 'PublicSession#create', 'url' => '/public/session/{documentId}/create', 'verb' => 'PUT'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\PublicSessionController::updateSession() */
|
2023-11-28 18:13:37 +03:00
|
|
|
['name' => 'PublicSession#updateSession', 'url' => '/public/session/{documentId}/session', 'verb' => 'POST'],
|
2023-06-30 00:21:16 +03:00
|
|
|
/** @see Controller\PublicSessionController::save() */
|
2023-11-28 18:13:37 +03:00
|
|
|
['name' => 'PublicSession#save', 'url' => '/public/session/{documentId}/save', 'verb' => 'POST'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\PublicSessionController::sync() */
|
2023-11-28 18:13:37 +03:00
|
|
|
['name' => 'PublicSession#sync', 'url' => '/public/session/{documentId}/sync', 'verb' => 'POST'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\PublicSessionController::push() */
|
2023-11-28 18:13:37 +03:00
|
|
|
['name' => 'PublicSession#push', 'url' => '/public/session/{documentId}/push', 'verb' => 'POST'],
|
2023-06-13 19:09:11 +03:00
|
|
|
/** @see Controller\PublicSessionController::close() */
|
2023-11-28 18:13:37 +03:00
|
|
|
['name' => 'PublicSession#close', 'url' => '/public/session/{documentId}/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
|
|
|
]
|
|
|
|
];
|