Skip to content

Commit

Permalink
change: Move FaviconHandler config to facilitate reuse.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenVerborgh committed Jan 29, 2021
1 parent c29928c commit 904c069
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 11 additions & 0 deletions config/presets/http.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
]
}
11 changes: 0 additions & 11 deletions config/presets/static.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
]
}

0 comments on commit 904c069

Please sign in to comment.