From 904c0694511b29467ab813fb36c0896d3cf37bc2 Mon Sep 17 00:00:00 2001 From: Ruben Verborgh Date: Fri, 29 Jan 2021 15:39:59 +0100 Subject: [PATCH] change: Move FaviconHandler config to facilitate reuse. --- config/presets/http.json | 11 +++++++++++ config/presets/static.json | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/config/presets/http.json b/config/presets/http.json index cde5b6fcc..028bde8ad 100644 --- a/config/presets/http.json +++ b/config/presets/http.json @@ -43,6 +43,17 @@ ] } ] + }, + { + "@id": "urn:solid-server:default:FaviconHandler", + "@type": "StaticAssetHandler", + "comment": "Serves the favicon", + "StaticAssetHandler:_assets": [ + { + "StaticAssetHandler:_assets_key": "/favicon.ico", + "StaticAssetHandler:_assets_value": "./templates/root/favicon.ico" + } + ] } ] } diff --git a/config/presets/static.json b/config/presets/static.json index 34e0d5229..aa253b1ec 100644 --- a/config/presets/static.json +++ b/config/presets/static.json @@ -10,17 +10,6 @@ "@id": "urn:solid-server:default:StaticAssetHandler", "@type": "UnsupportedAsyncHandler", "comment": "This value can be used to set a custom handler for static assets" - }, - { - "@id": "urn:solid-server:default:FaviconHandler", - "@type": "StaticAssetHandler", - "comment": "Serves the favicon", - "StaticAssetHandler:_assets": [ - { - "StaticAssetHandler:_assets_key": "/favicon.ico", - "StaticAssetHandler:_assets_value": "./templates/root/favicon.ico" - } - ] } ] }