PageRenderTime 47ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/apps/encryption/appinfo/routes.php

https://gitlab.com/wuhang2003/core
PHP | 60 lines | 34 code | 6 blank | 20 comment | 0 complexity | fcc77c750b768067cb66fcb5ae63d756 MD5 | raw file
  1. <?php
  2. /**
  3. * @author Björn Schießle <schiessle@owncloud.com>
  4. * @author Clark Tomlinson <fallen013@gmail.com>
  5. *
  6. * @copyright Copyright (c) 2016, ownCloud, Inc.
  7. * @license AGPL-3.0
  8. *
  9. * This code is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU Affero General Public License, version 3,
  11. * as published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Affero General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public License, version 3,
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>
  20. *
  21. */
  22. namespace OCA\Encryption\AppInfo;
  23. (new Application())->registerRoutes($this, array('routes' => array(
  24. [
  25. 'name' => 'Recovery#adminRecovery',
  26. 'url' => '/ajax/adminRecovery',
  27. 'verb' => 'POST'
  28. ],
  29. [
  30. 'name' => 'Settings#updatePrivateKeyPassword',
  31. 'url' => '/ajax/updatePrivateKeyPassword',
  32. 'verb' => 'POST'
  33. ],
  34. [
  35. 'name' => 'Settings#setEncryptHomeStorage',
  36. 'url' => '/ajax/setEncryptHomeStorage',
  37. 'verb' => 'POST'
  38. ],
  39. [
  40. 'name' => 'Recovery#changeRecoveryPassword',
  41. 'url' => '/ajax/changeRecoveryPassword',
  42. 'verb' => 'POST'
  43. ],
  44. [
  45. 'name' => 'Recovery#userSetRecovery',
  46. 'url' => '/ajax/userSetRecovery',
  47. 'verb' => 'POST'
  48. ],
  49. [
  50. 'name' => 'Status#getStatus',
  51. 'url' => '/ajax/getStatus',
  52. 'verb' => 'GET'
  53. ]
  54. )));