favicon: Only serve from /favicon.ico

This commit is contained in:
Richard Hansen 2021-04-19 22:33:23 -04:00
parent c2ac5e6145
commit d0d4b95980

View file

@ -74,8 +74,7 @@ exports.expressCreateServer = (hookName, args, cb) => {
}));
});
// serve favicon.ico from all path levels except as a pad name
args.app.get(/\/favicon.ico$/, (req, res) => {
args.app.get('/favicon.ico', (req, res) => {
let filePath = path.join(
settings.root,
'src',