routes.php 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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_grouplist', '/settings/ajax/grouplist')
  27. ->actionInclude('settings/ajax/grouplist.php');
  28. $this->create('settings_ajax_createuser', '/settings/ajax/createuser.php')
  29. ->actionInclude('settings/ajax/createuser.php');
  30. $this->create('settings_ajax_removeuser', '/settings/ajax/removeuser.php')
  31. ->actionInclude('settings/ajax/removeuser.php');
  32. $this->create('settings_ajax_setquota', '/settings/ajax/setquota.php')
  33. ->actionInclude('settings/ajax/setquota.php');
  34. $this->create('settings_ajax_creategroup', '/settings/ajax/creategroup.php')
  35. ->actionInclude('settings/ajax/creategroup.php');
  36. $this->create('settings_ajax_togglegroups', '/settings/ajax/togglegroups.php')
  37. ->actionInclude('settings/ajax/togglegroups.php');
  38. $this->create('settings_ajax_togglesubadmins', '/settings/ajax/togglesubadmins.php')
  39. ->actionInclude('settings/ajax/togglesubadmins.php');
  40. $this->create('settings_ajax_removegroup', '/settings/ajax/removegroup.php')
  41. ->actionInclude('settings/ajax/removegroup.php');
  42. $this->create('settings_users_changepassword', '/settings/users/changepassword')
  43. ->post()
  44. ->action('OC\Settings\ChangePassword\Controller', 'changeUserPassword');
  45. $this->create('settings_ajax_changedisplayname', '/settings/ajax/changedisplayname.php')
  46. ->actionInclude('settings/ajax/changedisplayname.php');
  47. $this->create('settings_ajax_changegorupname', '/settings/ajax/changegroupname.php')
  48. ->actionInclude('settings/ajax/changegroupname.php');
  49. // personal
  50. $this->create('settings_personal_changepassword', '/settings/personal/changepassword')
  51. ->post()
  52. ->action('OC\Settings\ChangePassword\Controller', 'changePersonalPassword');
  53. $this->create('settings_ajax_lostpassword', '/settings/ajax/lostpassword.php')
  54. ->actionInclude('settings/ajax/lostpassword.php');
  55. $this->create('settings_ajax_setlanguage', '/settings/ajax/setlanguage.php')
  56. ->actionInclude('settings/ajax/setlanguage.php');
  57. $this->create('settings_ajax_decryptall', '/settings/ajax/decryptall.php')
  58. ->actionInclude('settings/ajax/decryptall.php');
  59. $this->create('settings_ajax_restorekeys', '/settings/ajax/restorekeys.php')
  60. ->actionInclude('settings/ajax/restorekeys.php');
  61. $this->create('settings_ajax_deletekeys', '/settings/ajax/deletekeys.php')
  62. ->actionInclude('settings/ajax/deletekeys.php');
  63. // apps
  64. $this->create('settings_ajax_apps_ocs', '/settings/ajax/apps/ocs.php')
  65. ->actionInclude('settings/ajax/apps/ocs.php');
  66. $this->create('settings_ajax_enableapp', '/settings/ajax/enableapp.php')
  67. ->actionInclude('settings/ajax/enableapp.php');
  68. $this->create('settings_ajax_disableapp', '/settings/ajax/disableapp.php')
  69. ->actionInclude('settings/ajax/disableapp.php');
  70. $this->create('settings_ajax_updateapp', '/settings/ajax/updateapp.php')
  71. ->actionInclude('settings/ajax/updateapp.php');
  72. $this->create('settings_ajax_uninstallapp', '/settings/ajax/uninstallapp.php')
  73. ->actionInclude('settings/ajax/uninstallapp.php');
  74. $this->create('settings_ajax_navigationdetect', '/settings/ajax/navigationdetect.php')
  75. ->actionInclude('settings/ajax/navigationdetect.php');
  76. $this->create('apps_custom', '/settings/js/apps-custom.js')
  77. ->actionInclude('settings/js/apps-custom.php');
  78. // admin
  79. $this->create('settings_ajax_getlog', '/settings/ajax/getlog.php')
  80. ->actionInclude('settings/ajax/getlog.php');
  81. $this->create('settings_ajax_setloglevel', '/settings/ajax/setloglevel.php')
  82. ->actionInclude('settings/ajax/setloglevel.php');
  83. $this->create('settings_mail_settings', '/settings/admin/mailsettings')
  84. ->post()
  85. ->action('OC\Settings\Admin\Controller', 'setMailSettings');
  86. $this->create('settings_admin_mail_test', '/settings/admin/mailtest')
  87. ->post()
  88. ->action('OC\Settings\Admin\Controller', 'sendTestMail');
  89. $this->create('settings_ajax_setsecurity', '/settings/ajax/setsecurity.php')
  90. ->actionInclude('settings/ajax/setsecurity.php');
  91. $this->create('settings_ajax_excludegroups', '/settings/ajax/excludegroups.php')
  92. ->actionInclude('settings/ajax/excludegroups.php');