1
0

routes.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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#uploadImage',
  42. 'url' => '/ajax/uploadImage',
  43. 'verb' => 'POST'
  44. ],
  45. [
  46. 'name' => 'Theming#getStylesheet',
  47. 'url' => '/styles',
  48. 'verb' => 'GET',
  49. ],
  50. [
  51. 'name' => 'Theming#getImage',
  52. 'url' => '/image/{key}',
  53. 'verb' => 'GET',
  54. ],
  55. [
  56. 'name' => 'Theming#getJavascript',
  57. 'url' => '/js/theming',
  58. 'verb' => 'GET',
  59. ],
  60. [
  61. 'name' => 'Theming#getManifest',
  62. 'url' => '/manifest/{app}',
  63. 'verb' => 'GET',
  64. 'defaults' => array('app' => 'core')
  65. ],
  66. [
  67. 'name' => 'Icon#getFavicon',
  68. 'url' => '/favicon/{app}',
  69. 'verb' => 'GET',
  70. 'defaults' => array('app' => 'core'),
  71. ],
  72. [
  73. 'name' => 'Icon#getTouchIcon',
  74. 'url' => '/icon/{app}',
  75. 'verb' => 'GET',
  76. 'defaults' => array('app' => 'core'),
  77. ],
  78. [
  79. 'name' => 'Icon#getThemedIcon',
  80. 'url' => '/img/{app}/{image}',
  81. 'verb' => 'GET',
  82. 'requirements' => array('image' => '.+')
  83. ],
  84. ]];