Skip to content
Snippets Groups Projects
Unverified Commit 4ac422e3 authored by Christoph Wurst's avatar Christoph Wurst Committed by GitHub
Browse files

Merge pull request #1329 from nextcloud/td/routes_just_array

The routes.php can just return an array
parents 485329ff 06d97349
No related branches found
No related tags found
No related merge requests found
<?php
declare(strict_types=1);
/**
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
......@@ -20,9 +21,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
$app = new \OCA\Mail\AppInfo\Application();
$app->registerRoutes($this,
[
return [
'routes' => [
[
'name' => 'page#index',
......@@ -104,4 +103,4 @@ $app->registerRoutes($this,
'messages' => ['url' => '/api/accounts/{accountId}/folders/{folderId}/messages'],
'preferences' => ['url' => '/api/preferences'],
]
]);
];
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment