1
0

routes.php 2.3 KB

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