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;
|
|
|
|
|
|
|
|
return [
|
|
|
|
'routes' => [
|
2021-11-22 20:45:27 +03:00
|
|
|
['name' => 'Image#insertImageFile', 'url' => '/image/filepath', 'verb' => 'POST'],
|
2021-10-21 17:12:20 +03:00
|
|
|
['name' => 'Image#uploadImage', 'url' => '/image/upload', 'verb' => 'POST'],
|
2021-10-22 17:07:07 +03:00
|
|
|
['name' => 'Image#getImage', 'url' => '/image', 'verb' => 'GET'],
|
2021-10-20 13:18:17 +03:00
|
|
|
|
2020-11-18 23:42:51 +03:00
|
|
|
['name' => 'Session#create', 'url' => '/session/create', 'verb' => 'PUT'],
|
|
|
|
['name' => 'Session#fetch', 'url' => '/session/fetch', 'verb' => 'POST'],
|
2019-05-08 18:45:16 +03:00
|
|
|
['name' => 'Session#sync', 'url' => '/session/sync', 'verb' => 'POST'],
|
2019-04-13 21:28:28 +03:00
|
|
|
['name' => 'Session#push', 'url' => '/session/push', 'verb' => 'POST'],
|
2020-11-18 23:42:51 +03:00
|
|
|
['name' => 'Session#close', 'url' => '/session/close', 'verb' => 'POST'],
|
2019-05-14 10:34:30 +03:00
|
|
|
|
2020-11-18 23:42:51 +03:00
|
|
|
['name' => 'PublicSession#create', 'url' => '/public/session/create', 'verb' => 'PUT'],
|
2019-06-15 00:26:12 +03:00
|
|
|
['name' => 'PublicSession#updateSession', 'url' => '/public/session', 'verb' => 'POST'],
|
2020-11-18 23:42:51 +03:00
|
|
|
['name' => 'PublicSession#fetch', 'url' => '/public/session/fetch', 'verb' => 'POST'],
|
2019-05-14 10:34:30 +03:00
|
|
|
['name' => 'PublicSession#sync', 'url' => '/public/session/sync', 'verb' => 'POST'],
|
|
|
|
['name' => 'PublicSession#push', 'url' => '/public/session/push', 'verb' => 'POST'],
|
2019-10-16 11:33:39 +03:00
|
|
|
|
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
|
|
|
|
|
|
|
['name' => 'Settings#updateConfig', 'url' => '/settings', 'verb' => 'POST'],
|
2019-10-25 12:32:49 +03:00
|
|
|
],
|
|
|
|
'ocs' => [
|
|
|
|
['name' => 'Workspace#folder', 'url' => '/workspace', 'verb' => 'GET'],
|
|
|
|
['name' => 'Workspace#publicFolder', 'url' => '/public/workspace', 'verb' => 'GET'],
|
2019-11-28 11:18:47 +03:00
|
|
|
['name' => 'Workspace#direct', 'url' => '/workspace/direct', 'verb' => 'POST'],
|
2019-03-18 19:15:31 +03:00
|
|
|
]
|
|
|
|
];
|