routes.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016 Bjoern Schiessle <bjoern@schiessle.org>
  4. * @copyright Copyright (c) 2016 Lukas Reschke <lukas@statuscode.ch>
  5. *
  6. * @author Bjoern Schiessle <bjoern@schiessle.org>
  7. * @author Christoph Wurst <christoph@winzerhof-wurst.at>
  8. * @author Joas Schilling <coding@schilljs.com>
  9. * @author Julius Haertl <jus@bitgrid.net>
  10. * @author Julius Härtl <jus@bitgrid.net>
  11. * @author Lukas Reschke <lukas@statuscode.ch>
  12. * @author oparoz <owncloud@interfasys.ch>
  13. *
  14. * @license GNU AGPL version 3 or any later version
  15. *
  16. * This program is free software: you can redistribute it and/or modify
  17. * it under the terms of the GNU Affero General Public License as
  18. * published by the Free Software Foundation, either version 3 of the
  19. * License, or (at your option) any later version.
  20. *
  21. * This program is distributed in the hope that it will be useful,
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. * GNU Affero General Public License for more details.
  25. *
  26. * You should have received a copy of the GNU Affero General Public License
  27. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  28. *
  29. */
  30. return ['routes' => [
  31. [
  32. 'name' => 'Theming#updateStylesheet',
  33. 'url' => '/ajax/updateStylesheet',
  34. 'verb' => 'POST'
  35. ],
  36. [
  37. 'name' => 'Theming#undo',
  38. 'url' => '/ajax/undoChanges',
  39. 'verb' => 'POST'
  40. ],
  41. [
  42. 'name' => 'Theming#uploadImage',
  43. 'url' => '/ajax/uploadImage',
  44. 'verb' => 'POST'
  45. ],
  46. [
  47. 'name' => 'Theming#getStylesheet',
  48. 'url' => '/styles',
  49. 'verb' => 'GET',
  50. ],
  51. [
  52. 'name' => 'Theming#getImage',
  53. 'url' => '/image/{key}',
  54. 'verb' => 'GET',
  55. ],
  56. [
  57. 'name' => 'Theming#getManifest',
  58. 'url' => '/manifest/{app}',
  59. 'verb' => 'GET',
  60. 'defaults' => ['app' => 'core']
  61. ],
  62. [
  63. 'name' => 'Icon#getFavicon',
  64. 'url' => '/favicon/{app}',
  65. 'verb' => 'GET',
  66. 'defaults' => ['app' => 'core'],
  67. ],
  68. [
  69. 'name' => 'Icon#getTouchIcon',
  70. 'url' => '/icon/{app}',
  71. 'verb' => 'GET',
  72. 'defaults' => ['app' => 'core'],
  73. ],
  74. [
  75. 'name' => 'Icon#getThemedIcon',
  76. 'url' => '/img/{app}/{image}',
  77. 'verb' => 'GET',
  78. 'requirements' => ['image' => '.+']
  79. ],
  80. ]];