diff options
author | Julius Haertl <jus@bitgrid.net> | 2016-08-11 23:25:41 +0200 |
---|---|---|
committer | Julius Haertl <jus@bitgrid.net> | 2016-11-18 10:23:22 +0100 |
commit | b3eab7db01f8e6dc4c98a1f89171052d8bf762b5 (patch) | |
tree | 5629709b8fdb98a03f0a2067fb445a5894da1aa4 /apps/theming/appinfo | |
parent | 00fffae47f4563e6b6e2f5efe632d8341cf1425c (diff) | |
download | nextcloud-server-b3eab7db01f8e6dc4c98a1f89171052d8bf762b5.tar.gz nextcloud-server-b3eab7db01f8e6dc4c98a1f89171052d8bf762b5.zip |
Theming: Add dynamic icon and favicon endpoints
Signed-off-by: Julius Haertl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming/appinfo')
-rw-r--r-- | apps/theming/appinfo/routes.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/theming/appinfo/routes.php b/apps/theming/appinfo/routes.php index 4a8d4bac5bc..1894d810287 100644 --- a/apps/theming/appinfo/routes.php +++ b/apps/theming/appinfo/routes.php @@ -60,5 +60,18 @@ return ['routes' => [ 'url' => '/js/theming', 'verb' => 'GET', ], + [ + 'name' => 'Icon#getFavicon', + 'url' => '/favicon/{app}', + 'verb' => 'GET', + 'defaults' => array("app" => "core"), + ], + [ + 'name' => 'Icon#getThemedIcon', + 'url' => '/image/{app}/{image}', + 'verb' => 'GET', + 'defaults' => array("app" => "core"), + 'requirements' => array('image' => '.+') + ], ]]; |