routes.php 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /**
  3. * Copyright (c) 2012 Bart Visscher <bartv@thisnet.nl>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. /** @var $this OCP\Route\IRouter */
  9. // Settings pages
  10. $this->create('settings_help', '/settings/help')
  11. ->actionInclude('settings/help.php');
  12. $this->create('settings_personal', '/settings/personal')
  13. ->actionInclude('settings/personal.php');
  14. $this->create('settings_settings', '/settings')
  15. ->actionInclude('settings/settings.php');
  16. $this->create('settings_users', '/settings/users')
  17. ->actionInclude('settings/users.php');
  18. $this->create('settings_apps', '/settings/apps')
  19. ->actionInclude('settings/apps.php');
  20. $this->create('settings_admin', '/settings/admin')
  21. ->actionInclude('settings/admin.php');
  22. // Settings ajax actions
  23. // users
  24. $this->create('settings_ajax_userlist', '/settings/ajax/userlist')
  25. ->actionInclude('settings/ajax/userlist.php');
  26. $this->create('settings_ajax_createuser', '/settings/ajax/createuser.php')
  27. ->actionInclude('settings/ajax/createuser.php');
  28. $this->create('settings_ajax_removeuser', '/settings/ajax/removeuser.php')
  29. ->actionInclude('settings/ajax/removeuser.php');
  30. $this->create('settings_ajax_setquota', '/settings/ajax/setquota.php')
  31. ->actionInclude('settings/ajax/setquota.php');
  32. $this->create('settings_ajax_creategroup', '/settings/ajax/creategroup.php')
  33. ->actionInclude('settings/ajax/creategroup.php');
  34. $this->create('settings_ajax_togglegroups', '/settings/ajax/togglegroups.php')
  35. ->actionInclude('settings/ajax/togglegroups.php');
  36. $this->create('settings_ajax_togglesubadmins', '/settings/ajax/togglesubadmins.php')
  37. ->actionInclude('settings/ajax/togglesubadmins.php');
  38. $this->create('settings_ajax_removegroup', '/settings/ajax/removegroup.php')
  39. ->actionInclude('settings/ajax/removegroup.php');
  40. $this->create('settings_users_changepassword', '/settings/users/changepassword')
  41. ->post()
  42. ->action('OC\Settings\ChangePassword\Controller', 'changeUserPassword');
  43. $this->create('settings_ajax_changedisplayname', '/settings/ajax/changedisplayname.php')
  44. ->actionInclude('settings/ajax/changedisplayname.php');
  45. // personal
  46. $this->create('settings_personal_changepassword', '/settings/personal/changepassword')
  47. ->post()
  48. ->action('OC\Settings\ChangePassword\Controller', 'changePersonalPassword');
  49. $this->create('settings_ajax_lostpassword', '/settings/ajax/lostpassword.php')
  50. ->actionInclude('settings/ajax/lostpassword.php');
  51. $this->create('settings_ajax_setlanguage', '/settings/ajax/setlanguage.php')
  52. ->actionInclude('settings/ajax/setlanguage.php');
  53. $this->create('settings_ajax_decryptall', '/settings/ajax/decryptall.php')
  54. ->actionInclude('settings/ajax/decryptall.php');
  55. // apps
  56. $this->create('settings_ajax_apps_ocs', '/settings/ajax/apps/ocs.php')
  57. ->actionInclude('settings/ajax/apps/ocs.php');
  58. $this->create('settings_ajax_enableapp', '/settings/ajax/enableapp.php')
  59. ->actionInclude('settings/ajax/enableapp.php');
  60. $this->create('settings_ajax_disableapp', '/settings/ajax/disableapp.php')
  61. ->actionInclude('settings/ajax/disableapp.php');
  62. $this->create('settings_ajax_updateapp', '/settings/ajax/updateapp.php')
  63. ->actionInclude('settings/ajax/updateapp.php');
  64. $this->create('settings_ajax_navigationdetect', '/settings/ajax/navigationdetect.php')
  65. ->actionInclude('settings/ajax/navigationdetect.php');
  66. $this->create('apps_custom', '/settings/js/apps-custom.js')
  67. ->actionInclude('settings/js/apps-custom.php');
  68. // admin
  69. $this->create('settings_ajax_getlog', '/settings/ajax/getlog.php')
  70. ->actionInclude('settings/ajax/getlog.php');
  71. $this->create('settings_ajax_setloglevel', '/settings/ajax/setloglevel.php')
  72. ->actionInclude('settings/ajax/setloglevel.php');
  73. $this->create('settings_mail_settings', '/settings/admin/mailsettings')
  74. ->post()
  75. ->action('OC\Settings\Admin\Controller', 'setMailSettings');
  76. $this->create('settings_admin_mail_test', '/settings/admin/mailtest')
  77. ->post()
  78. ->action('OC\Settings\Admin\Controller', 'sendTestMail');
  79. $this->create('settings_ajax_setsecurity', '/settings/ajax/setsecurity.php')
  80. ->actionInclude('settings/ajax/setsecurity.php');