Completed
Pull Request — master (#4027)
by Joas
11:34
created
core/routes.php 1 patch
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -35,34 +35,34 @@  discard block
 block discarded – undo
35 35
 
36 36
 $application = new Application();
37 37
 $application->registerRoutes($this, [
38
-	'routes' => [
39
-		['name' => 'lost#email', 'url' => '/lostpassword/email', 'verb' => 'POST'],
40
-		['name' => 'lost#resetform', 'url' => '/lostpassword/reset/form/{token}/{userId}', 'verb' => 'GET'],
41
-		['name' => 'lost#setPassword', 'url' => '/lostpassword/set/{token}/{userId}', 'verb' => 'POST'],
42
-		['name' => 'user#getDisplayNames', 'url' => '/displaynames', 'verb' => 'POST'],
43
-		['name' => 'avatar#getAvatar', 'url' => '/avatar/{userId}/{size}', 'verb' => 'GET'],
44
-		['name' => 'avatar#deleteAvatar', 'url' => '/avatar/', 'verb' => 'DELETE'],
45
-		['name' => 'avatar#postCroppedAvatar', 'url' => '/avatar/cropped', 'verb' => 'POST'],
46
-		['name' => 'avatar#getTmpAvatar', 'url' => '/avatar/tmp', 'verb' => 'GET'],
47
-		['name' => 'avatar#postAvatar', 'url' => '/avatar/', 'verb' => 'POST'],
48
-		['name' => 'login#tryLogin', 'url' => '/login', 'verb' => 'POST'],
49
-		['name' => 'login#confirmPassword', 'url' => '/login/confirm', 'verb' => 'POST'],
50
-		['name' => 'login#showLoginForm', 'url' => '/login', 'verb' => 'GET'],
51
-		['name' => 'login#logout', 'url' => '/logout', 'verb' => 'GET'],
52
-		['name' => 'TwoFactorChallenge#selectChallenge', 'url' => '/login/selectchallenge', 'verb' => 'GET'],
53
-		['name' => 'TwoFactorChallenge#showChallenge', 'url' => '/login/challenge/{challengeProviderId}', 'verb' => 'GET'],
54
-		['name' => 'TwoFactorChallenge#solveChallenge', 'url' => '/login/challenge/{challengeProviderId}', 'verb' => 'POST'],
55
-		['name' => 'OCJS#getConfig', 'url' => '/core/js/oc.js', 'verb' => 'GET'],
56
-		['name' => 'Preview#getPreview', 'url' => '/core/preview', 'verb' => 'GET'],
57
-		['name' => 'Preview#getPreview', 'url' => '/core/preview.png', 'verb' => 'GET'],
58
-		['name' => 'Css#getCss', 'url' => '/css/{appName}/{fileName}', 'verb' => 'GET'],
59
-	],
60
-	'ocs' => [
61
-		['root' => '/cloud', 'name' => 'OCS#getCapabilities', 'url' => '/capabilities', 'verb' => 'GET'],
62
-		['root' => '', 'name' => 'OCS#getConfig', 'url' => '/config', 'verb' => 'GET'],
63
-		['root' => '/person', 'name' => 'OCS#personCheck', 'url' => '/check', 'verb' => 'POST'],
64
-		['root' => '/identityproof', 'name' => 'OCS#getIdentityProof', 'url' => '/key/{cloudId}', 'verb' => 'GET'],
65
-	],
38
+    'routes' => [
39
+        ['name' => 'lost#email', 'url' => '/lostpassword/email', 'verb' => 'POST'],
40
+        ['name' => 'lost#resetform', 'url' => '/lostpassword/reset/form/{token}/{userId}', 'verb' => 'GET'],
41
+        ['name' => 'lost#setPassword', 'url' => '/lostpassword/set/{token}/{userId}', 'verb' => 'POST'],
42
+        ['name' => 'user#getDisplayNames', 'url' => '/displaynames', 'verb' => 'POST'],
43
+        ['name' => 'avatar#getAvatar', 'url' => '/avatar/{userId}/{size}', 'verb' => 'GET'],
44
+        ['name' => 'avatar#deleteAvatar', 'url' => '/avatar/', 'verb' => 'DELETE'],
45
+        ['name' => 'avatar#postCroppedAvatar', 'url' => '/avatar/cropped', 'verb' => 'POST'],
46
+        ['name' => 'avatar#getTmpAvatar', 'url' => '/avatar/tmp', 'verb' => 'GET'],
47
+        ['name' => 'avatar#postAvatar', 'url' => '/avatar/', 'verb' => 'POST'],
48
+        ['name' => 'login#tryLogin', 'url' => '/login', 'verb' => 'POST'],
49
+        ['name' => 'login#confirmPassword', 'url' => '/login/confirm', 'verb' => 'POST'],
50
+        ['name' => 'login#showLoginForm', 'url' => '/login', 'verb' => 'GET'],
51
+        ['name' => 'login#logout', 'url' => '/logout', 'verb' => 'GET'],
52
+        ['name' => 'TwoFactorChallenge#selectChallenge', 'url' => '/login/selectchallenge', 'verb' => 'GET'],
53
+        ['name' => 'TwoFactorChallenge#showChallenge', 'url' => '/login/challenge/{challengeProviderId}', 'verb' => 'GET'],
54
+        ['name' => 'TwoFactorChallenge#solveChallenge', 'url' => '/login/challenge/{challengeProviderId}', 'verb' => 'POST'],
55
+        ['name' => 'OCJS#getConfig', 'url' => '/core/js/oc.js', 'verb' => 'GET'],
56
+        ['name' => 'Preview#getPreview', 'url' => '/core/preview', 'verb' => 'GET'],
57
+        ['name' => 'Preview#getPreview', 'url' => '/core/preview.png', 'verb' => 'GET'],
58
+        ['name' => 'Css#getCss', 'url' => '/css/{appName}/{fileName}', 'verb' => 'GET'],
59
+    ],
60
+    'ocs' => [
61
+        ['root' => '/cloud', 'name' => 'OCS#getCapabilities', 'url' => '/capabilities', 'verb' => 'GET'],
62
+        ['root' => '', 'name' => 'OCS#getConfig', 'url' => '/config', 'verb' => 'GET'],
63
+        ['root' => '/person', 'name' => 'OCS#personCheck', 'url' => '/check', 'verb' => 'POST'],
64
+        ['root' => '/identityproof', 'name' => 'OCS#getIdentityProof', 'url' => '/key/{cloudId}', 'verb' => 'GET'],
65
+    ],
66 66
 ]);
67 67
 
68 68
 // Post installation check
@@ -71,42 +71,42 @@  discard block
 block discarded – undo
71 71
 // Core ajax actions
72 72
 // Search
73 73
 $this->create('search_ajax_search', '/core/search')
74
-	->actionInclude('core/search/ajax/search.php');
74
+    ->actionInclude('core/search/ajax/search.php');
75 75
 // Routing
76 76
 $this->create('core_ajax_update', '/core/ajax/update.php')
77
-	->actionInclude('core/ajax/update.php');
77
+    ->actionInclude('core/ajax/update.php');
78 78
 
79 79
 // File routes
80 80
 $this->create('files.viewcontroller.showFile', '/f/{fileid}')->action(function($urlParams) {
81
-	$app = new \OCA\Files\AppInfo\Application($urlParams);
82
-	$app->dispatch('ViewController', 'index');
81
+    $app = new \OCA\Files\AppInfo\Application($urlParams);
82
+    $app->dispatch('ViewController', 'index');
83 83
 });
84 84
 
85 85
 // Call routes
86 86
 $this->create('spreed.pagecontroller.showCall', '/call/{token}')->action(function($urlParams) {
87
-	$app = new \OCA\Spreed\AppInfo\Application($urlParams);
88
-	$app->dispatch('PageController', 'index');
87
+    $app = new \OCA\Spreed\AppInfo\Application($urlParams);
88
+    $app->dispatch('PageController', 'index');
89 89
 });
90 90
 
91 91
 // Sharing routes
92 92
 $this->create('files_sharing.sharecontroller.showShare', '/s/{token}')->action(function($urlParams) {
93
-	$app = new \OCA\Files_Sharing\AppInfo\Application($urlParams);
94
-	$app->dispatch('ShareController', 'showShare');
93
+    $app = new \OCA\Files_Sharing\AppInfo\Application($urlParams);
94
+    $app->dispatch('ShareController', 'showShare');
95 95
 });
96 96
 $this->create('files_sharing.sharecontroller.authenticate', '/s/{token}/authenticate')->post()->action(function($urlParams) {
97
-	$app = new \OCA\Files_Sharing\AppInfo\Application($urlParams);
98
-	$app->dispatch('ShareController', 'authenticate');
97
+    $app = new \OCA\Files_Sharing\AppInfo\Application($urlParams);
98
+    $app->dispatch('ShareController', 'authenticate');
99 99
 });
100 100
 $this->create('files_sharing.sharecontroller.showAuthenticate', '/s/{token}/authenticate')->get()->action(function($urlParams) {
101
-	$app = new \OCA\Files_Sharing\AppInfo\Application($urlParams);
102
-	$app->dispatch('ShareController', 'showAuthenticate');
101
+    $app = new \OCA\Files_Sharing\AppInfo\Application($urlParams);
102
+    $app->dispatch('ShareController', 'showAuthenticate');
103 103
 });
104 104
 $this->create('files_sharing.sharecontroller.downloadShare', '/s/{token}/download')->get()->action(function($urlParams) {
105
-	$app = new \OCA\Files_Sharing\AppInfo\Application($urlParams);
106
-	$app->dispatch('ShareController', 'downloadShare');
105
+    $app = new \OCA\Files_Sharing\AppInfo\Application($urlParams);
106
+    $app->dispatch('ShareController', 'downloadShare');
107 107
 });
108 108
 
109 109
 // used for heartbeat
110 110
 $this->create('heartbeat', '/heartbeat')->action(function(){
111
-	// do nothing
111
+    // do nothing
112 112
 });
Please login to merge, or discard this patch.