1
0

routes.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. *
  5. * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
  6. * @author Lukas Reschke <lukas@statuscode.ch>
  7. * @author Morris Jobke <hey@morrisjobke.de>
  8. * @author Roger Szabo <roger.szabo@web.de>
  9. *
  10. * @license AGPL-3.0
  11. *
  12. * This code is free software: you can redistribute it and/or modify
  13. * it under the terms of the GNU Affero General Public License, version 3,
  14. * as published by the Free Software Foundation.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU Affero General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU Affero General Public License, version 3,
  22. * along with this program. If not, see <http://www.gnu.org/licenses/>
  23. *
  24. */
  25. /** @var $this \OCP\Route\IRouter */
  26. $this->create('user_ldap_ajax_clearMappings', 'ajax/clearMappings.php')
  27. ->actionInclude('user_ldap/ajax/clearMappings.php');
  28. $this->create('user_ldap_ajax_deleteConfiguration', 'ajax/deleteConfiguration.php')
  29. ->actionInclude('user_ldap/ajax/deleteConfiguration.php');
  30. $this->create('user_ldap_ajax_getConfiguration', 'ajax/getConfiguration.php')
  31. ->actionInclude('user_ldap/ajax/getConfiguration.php');
  32. $this->create('user_ldap_ajax_getNewServerConfigPrefix', 'ajax/getNewServerConfigPrefix.php')
  33. ->actionInclude('user_ldap/ajax/getNewServerConfigPrefix.php');
  34. $this->create('user_ldap_ajax_setConfiguration', 'ajax/setConfiguration.php')
  35. ->actionInclude('user_ldap/ajax/setConfiguration.php');
  36. $this->create('user_ldap_ajax_testConfiguration', 'ajax/testConfiguration.php')
  37. ->actionInclude('user_ldap/ajax/testConfiguration.php');
  38. $this->create('user_ldap_ajax_wizard', 'ajax/wizard.php')
  39. ->actionInclude('user_ldap/ajax/wizard.php');
  40. $application = new \OCP\AppFramework\App('user_ldap');
  41. $application->registerRoutes($this, [
  42. 'ocs' => [
  43. ['name' => 'ConfigAPI#create', 'url' => '/api/v1/config', 'verb' => 'POST'],
  44. ['name' => 'ConfigAPI#show', 'url' => '/api/v1/config/{configID}', 'verb' => 'GET'],
  45. ['name' => 'ConfigAPI#modify', 'url' => '/api/v1/config/{configID}', 'verb' => 'PUT'],
  46. ['name' => 'ConfigAPI#delete', 'url' => '/api/v1/config/{configID}', 'verb' => 'DELETE'],
  47. ]
  48. ]);
  49. $application = new OCA\User_LDAP\AppInfo\Application();
  50. $application->registerRoutes($this, [
  51. 'routes' => [
  52. ['name' => 'renewPassword#tryRenewPassword', 'url' => '/renewpassword', 'verb' => 'POST'],
  53. ['name' => 'renewPassword#showRenewPasswordForm', 'url' => '/renewpassword/{user}', 'verb' => 'GET'],
  54. ['name' => 'renewPassword#cancel', 'url' => '/renewpassword/cancel', 'verb' => 'GET'],
  55. ['name' => 'renewPassword#showLoginFormInvalidPassword', 'url' => '/renewpassword/invalidlogin/{user}', 'verb' => 'GET'],
  56. ]
  57. ]);