2016-06-09 15:46:30 -04:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* @copyright Copyright (c) 2016 Bjoern Schiessle <bjoern@schiessle.org>
|
2016-06-21 15:21:46 -04:00
|
|
|
* @copyright Copyright (c) 2016 Lukas Reschke <lukas@statuscode.ch>
|
2016-06-09 15:46:30 -04:00
|
|
|
*
|
2016-07-21 10:49:16 -04:00
|
|
|
* @author Bjoern Schiessle <bjoern@schiessle.org>
|
2020-03-31 04:49:10 -04:00
|
|
|
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
|
2017-11-06 09:56:42 -05:00
|
|
|
* @author Joas Schilling <coding@schilljs.com>
|
|
|
|
|
* @author Julius Haertl <jus@bitgrid.net>
|
|
|
|
|
* @author Julius Härtl <jus@bitgrid.net>
|
2016-07-21 10:49:16 -04:00
|
|
|
* @author Lukas Reschke <lukas@statuscode.ch>
|
|
|
|
|
* @author oparoz <owncloud@interfasys.ch>
|
|
|
|
|
*
|
2016-06-09 15:46:30 -04:00
|
|
|
* @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
|
2021-06-04 15:52:51 -04:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2016-06-09 15:46:30 -04:00
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
2019-12-03 13:57:53 -05:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2016-06-09 15:46:30 -04:00
|
|
|
*
|
|
|
|
|
*/
|
2022-04-15 07:55:19 -04:00
|
|
|
return [
|
|
|
|
|
'routes' => [
|
|
|
|
|
[
|
|
|
|
|
'name' => 'Theming#updateStylesheet',
|
|
|
|
|
'url' => '/ajax/updateStylesheet',
|
|
|
|
|
'verb' => 'POST'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'name' => 'Theming#undo',
|
|
|
|
|
'url' => '/ajax/undoChanges',
|
|
|
|
|
'verb' => 'POST'
|
|
|
|
|
],
|
2022-11-30 11:45:58 -05:00
|
|
|
[
|
|
|
|
|
'name' => 'Theming#undoAll',
|
|
|
|
|
'url' => '/ajax/undoAllChanges',
|
|
|
|
|
'verb' => 'POST'
|
|
|
|
|
],
|
2022-04-15 07:55:19 -04:00
|
|
|
[
|
|
|
|
|
'name' => 'Theming#uploadImage',
|
|
|
|
|
'url' => '/ajax/uploadImage',
|
|
|
|
|
'verb' => 'POST'
|
|
|
|
|
],
|
|
|
|
|
[
|
2022-04-20 03:55:41 -04:00
|
|
|
'name' => 'Theming#getThemeStylesheet',
|
2022-04-15 07:55:19 -04:00
|
|
|
'url' => '/theme/{themeId}.css',
|
|
|
|
|
'verb' => 'GET',
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'name' => 'Theming#getImage',
|
|
|
|
|
'url' => '/image/{key}',
|
|
|
|
|
'verb' => 'GET',
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'name' => 'Theming#getManifest',
|
|
|
|
|
'url' => '/manifest/{app}',
|
|
|
|
|
'verb' => 'GET',
|
|
|
|
|
'defaults' => ['app' => 'core']
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'name' => 'Icon#getFavicon',
|
|
|
|
|
'url' => '/favicon/{app}',
|
|
|
|
|
'verb' => 'GET',
|
|
|
|
|
'defaults' => ['app' => 'core'],
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'name' => 'Icon#getTouchIcon',
|
|
|
|
|
'url' => '/icon/{app}',
|
|
|
|
|
'verb' => 'GET',
|
|
|
|
|
'defaults' => ['app' => 'core'],
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'name' => 'Icon#getThemedIcon',
|
|
|
|
|
'url' => '/img/{app}/{image}',
|
|
|
|
|
'verb' => 'GET',
|
|
|
|
|
'requirements' => ['image' => '.+']
|
|
|
|
|
],
|
2022-08-29 09:11:41 -04:00
|
|
|
[
|
|
|
|
|
'name' => 'userTheme#getBackground',
|
|
|
|
|
'url' => '/background',
|
|
|
|
|
'verb' => 'GET',
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'name' => 'userTheme#setBackground',
|
|
|
|
|
'url' => '/background/{type}',
|
|
|
|
|
'verb' => 'POST',
|
|
|
|
|
],
|
2022-10-20 07:18:06 -04:00
|
|
|
[
|
|
|
|
|
'name' => 'userTheme#deleteBackground',
|
|
|
|
|
'url' => '/background/custom',
|
|
|
|
|
'verb' => 'DELETE',
|
|
|
|
|
],
|
2016-06-09 15:46:30 -04:00
|
|
|
],
|
2022-04-15 07:55:19 -04:00
|
|
|
'ocs' => [
|
|
|
|
|
[
|
|
|
|
|
'name' => 'userTheme#enableTheme',
|
|
|
|
|
'url' => '/api/v1/theme/{themeId}/enable',
|
|
|
|
|
'verb' => 'PUT',
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'name' => 'userTheme#disableTheme',
|
|
|
|
|
'url' => '/api/v1/theme/{themeId}',
|
|
|
|
|
'verb' => 'DELETE',
|
|
|
|
|
],
|
|
|
|
|
]
|
|
|
|
|
];
|