routes.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
  4. *
  5. * @author Alexey Pyltsyn <lex61rus@gmail.com>
  6. * @author Christoph Wurst <christoph@winzerhof-wurst.at>
  7. * @author John Molakvoæ <skjnldsv@protonmail.com>
  8. * @author Julius Härtl <jus@bitgrid.net>
  9. *
  10. * @license GNU AGPL version 3 or any later version
  11. *
  12. * This program is free software: you can redistribute it and/or modify
  13. * it under the terms of the GNU Affero General Public License as
  14. * published by the Free Software Foundation, either version 3 of the
  15. * License, or (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU Affero General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU Affero General Public License
  23. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  24. *
  25. */
  26. return [
  27. 'routes' => [
  28. ['name' => 'accessibility#getCss', 'url' => '/css/user-{md5}', 'verb' => 'GET'],
  29. ],
  30. 'ocs' => [
  31. [
  32. 'name' => 'Config#getConfig',
  33. 'url' => '/api/v1/config',
  34. 'verb' => 'GET',
  35. ],
  36. [
  37. 'name' => 'Config#setConfig',
  38. 'url' => '/api/v1/config/{key}',
  39. 'verb' => 'PUT',
  40. ],
  41. [
  42. 'name' => 'Config#deleteConfig',
  43. 'url' => '/api/v1/config/{key}',
  44. 'verb' => 'DELETE',
  45. ],
  46. ]
  47. ];