aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/appinfo/routes.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-06-21 21:21:46 +0200
committerLukas Reschke <lukas@owncloud.com>2016-06-27 10:26:23 +0200
commit27b699bdbcd080ec9d5400a2391cdb2b725f7ee1 (patch)
tree0cd0e124cb6e7ea4b6dfdf1958df4eafae48d240 /apps/theming/appinfo/routes.php
parentcc321bc140f707257ffe1a11b4fa0238887e16fc (diff)
downloadnextcloud-server-27b699bdbcd080ec9d5400a2391cdb2b725f7ee1.tar.gz
nextcloud-server-27b699bdbcd080ec9d5400a2391cdb2b725f7ee1.zip
Migrate logic to dynamic controller
Also adds support for having custom login backgrounds
Diffstat (limited to 'apps/theming/appinfo/routes.php')
-rw-r--r--apps/theming/appinfo/routes.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/apps/theming/appinfo/routes.php b/apps/theming/appinfo/routes.php
index 7a2ff1f9dbd..dbbae372ffd 100644
--- a/apps/theming/appinfo/routes.php
+++ b/apps/theming/appinfo/routes.php
@@ -1,6 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2016 Bjoern Schiessle <bjoern@schiessle.org>
+ * @copyright Copyright (c) 2016 Lukas Reschke <lukas@statuscode.ch>
*
* @license GNU AGPL version 3 or any later version
*
@@ -19,7 +20,6 @@
*
*/
-
namespace OCA\Theming\AppInfo;
(new \OCP\AppFramework\App('theming'))->registerRoutes($this, array('routes' => array(
@@ -38,5 +38,20 @@ namespace OCA\Theming\AppInfo;
'url' => '/ajax/updateLogo',
'verb' => 'POST'
],
+ [
+ 'name' => 'Theming#getStylesheet',
+ 'url' => '/styles.css',
+ 'verb' => 'GET',
+ ],
+ [
+ 'name' => 'Theming#getLogo',
+ 'url' => '/logo',
+ 'verb' => 'GET',
+ ],
+ [
+ 'name' => 'Theming#getLoginBackground',
+ 'url' => '/loginbackground',
+ 'verb' => 'GET',
+ ],
)));