From 03e631ff178c48aeaafefe63e0027638f6e3b524 Mon Sep 17 00:00:00 2001 From: Matthieu Bosquet Date: Thu, 28 Jan 2021 20:49:23 +0000 Subject: [PATCH] feat: Static favicon asset --- config/presets/http.json | 3 +++ config/presets/static.json | 11 +++++++++++ templates/root/favicon.ico | Bin 0 -> 4286 bytes 3 files changed, 14 insertions(+) create mode 100644 templates/root/favicon.ico diff --git a/config/presets/http.json b/config/presets/http.json index b773ce799..cde5b6fcc 100644 --- a/config/presets/http.json +++ b/config/presets/http.json @@ -28,6 +28,9 @@ { "@type": "WaterfallHandler", "WaterfallHandler:_handlers": [ + { + "@id": "urn:solid-server:default:FaviconHandler" + }, { "@id": "urn:solid-server:default:StaticAssetHandler" }, diff --git a/config/presets/static.json b/config/presets/static.json index aa253b1ec..34e0d5229 100644 --- a/config/presets/static.json +++ b/config/presets/static.json @@ -10,6 +10,17 @@ "@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" + } + ] } ] } diff --git a/templates/root/favicon.ico b/templates/root/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..764acb2052a2af5542ac41f436ad5106ad109fa4 GIT binary patch literal 4286 zcmeH}u}%U(5Qc}!QYu?1eGBge>@6?$_7)~yjGeKvw7A5|*zgD>hK?9wL6n39A_*}> zf&~d+fN_4plD%X1SU94E9QoP1o!R+j_I4MDGV;mg2;cOOCE6pR1Cex*Cqn=965ICL z&cLcOz(?o4C@(5F3cmiT9FxDq2}Hc60#i)aK4E4>-8I?B8DrPpbuu@OEMLV>YQ-08uCDV@yN%s!Ho01@M(l&nu8EJBOV^_KEbKSTsfk~y zR2VYZkh5OH>^@jhdrtfo_FKIEUa!ZcQpw7;)Q@}+J7>#5Y@x`MceL;LiifWaW8Gj| zYF9C=`|%gp(;O1&S2>#7bal^TCh$Y+9Bhb|3$P5HHdahQg-;NaVidCGGfQBA95o$)&Kwi literal 0 HcmV?d00001