From 355622a8735e928a80ce36bce5aa1b2855733653 Mon Sep 17 00:00:00 2001 From: LordJavi <20624591+LordJavi@users.noreply.github.com> Date: Thu, 27 May 2021 04:43:34 +0200 Subject: [PATCH] Update index.js (#376) --- src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.js b/src/index.js index 7ca3bc27..15954a53 100644 --- a/src/index.js +++ b/src/index.js @@ -58,6 +58,9 @@ app.use(compression()); // Static paths app.use(express.static(path.resolve(__dirname, '../static'))); +// favicon for browsers +app.use('/favicon.ico', express.static(path.resolve(__dirname, '../static/custom/favicon.ico'))); + // Body parser middlewares app.use(express.json({ limit: '500mb' })); app.use(express.urlencoded({ extended: false, limit: '500mb' }));