feat: Static favicon asset

This commit is contained in:
Matthieu Bosquet 2021-01-28 20:49:23 +00:00 committed by Ruben Verborgh
parent c899e6c4b1
commit 03e631ff17
3 changed files with 14 additions and 0 deletions

View File

@ -28,6 +28,9 @@
{ {
"@type": "WaterfallHandler", "@type": "WaterfallHandler",
"WaterfallHandler:_handlers": [ "WaterfallHandler:_handlers": [
{
"@id": "urn:solid-server:default:FaviconHandler"
},
{ {
"@id": "urn:solid-server:default:StaticAssetHandler" "@id": "urn:solid-server:default:StaticAssetHandler"
}, },

View File

@ -10,6 +10,17 @@
"@id": "urn:solid-server:default:StaticAssetHandler", "@id": "urn:solid-server:default:StaticAssetHandler",
"@type": "UnsupportedAsyncHandler", "@type": "UnsupportedAsyncHandler",
"comment": "This value can be used to set a custom handler for static assets" "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"
}
]
} }
] ]
} }

BIN
templates/root/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB