]> source.dussan.org Git - nextcloud-server.git/commitdiff
Update routes.php
authorJoas Schilling <coding@schilljs.com>
Thu, 28 Jul 2016 13:47:09 +0000 (15:47 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 3 Aug 2016 07:14:44 +0000 (09:14 +0200)
apps/theming/appinfo/routes.php

index 073dacb789c71efbd8125f6728c01bd70708cfae..e062a68d69df898d0eeb0c3cc6aa7f84348f2e12 100644 (file)
@@ -24,9 +24,7 @@
  *
  */
 
-namespace OCA\Theming\AppInfo;
-
-(new \OCP\AppFramework\App('theming'))->registerRoutes($this, array('routes' => array(
+return ['routes' => [
        [
                'name' => 'Theming#updateStylesheet',
                'url' => '/ajax/updateStylesheet',
@@ -57,5 +55,5 @@ namespace OCA\Theming\AppInfo;
                'url' => '/loginbackground',
                'verb' => 'GET',
        ],
-)));
+]];