|
2 | 2 |
|
3 | 3 | declare(strict_types=1); |
4 | 4 |
|
5 | | -use OCA\User_LDAP\AppInfo\Application; |
6 | | -use OCP\AppFramework\App; |
7 | | - |
8 | 5 | /** |
9 | 6 | * SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors |
10 | 7 | * SPDX-FileCopyrightText: 2016 ownCloud, Inc. |
|
25 | 22 | $this->create('user_ldap_ajax_wizard', 'apps/user_ldap/ajax/wizard.php') |
26 | 23 | ->actionInclude('user_ldap/ajax/wizard.php'); |
27 | 24 |
|
28 | | -$application = new App('user_ldap'); |
29 | | -$application->registerRoutes($this, [ |
| 25 | +return [ |
30 | 26 | 'ocs' => [ |
31 | 27 | ['name' => 'ConfigAPI#create', 'url' => '/api/v1/config', 'verb' => 'POST'], |
32 | 28 | ['name' => 'ConfigAPI#show', 'url' => '/api/v1/config/{configID}', 'verb' => 'GET'], |
33 | 29 | ['name' => 'ConfigAPI#modify', 'url' => '/api/v1/config/{configID}', 'verb' => 'PUT'], |
34 | 30 | ['name' => 'ConfigAPI#delete', 'url' => '/api/v1/config/{configID}', 'verb' => 'DELETE'], |
35 | | - ] |
36 | | -]); |
37 | | - |
38 | | -/** @var Application $application */ |
39 | | -$application = \OC::$server->query(Application::class); |
40 | | -$application->registerRoutes($this, [ |
| 31 | + ], |
41 | 32 | 'routes' => [ |
42 | 33 | ['name' => 'renewPassword#tryRenewPassword', 'url' => '/renewpassword', 'verb' => 'POST'], |
43 | 34 | ['name' => 'renewPassword#showRenewPasswordForm', 'url' => '/renewpassword/{user}', 'verb' => 'GET'], |
44 | 35 | ['name' => 'renewPassword#cancel', 'url' => '/renewpassword/cancel', 'verb' => 'GET'], |
45 | 36 | ['name' => 'renewPassword#showLoginFormInvalidPassword', 'url' => '/renewpassword/invalidlogin/{user}', 'verb' => 'GET'], |
46 | | - ] |
47 | | -]); |
| 37 | + ], |
| 38 | +]; |
0 commit comments