From f66ae63d57bb4379bb859a6b776841b3acb2b984 Mon Sep 17 00:00:00 2001 From: wukko Date: Fri, 2 Aug 2024 22:35:49 +0600 Subject: [PATCH] api/core: remove favicon --- api/src/core/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/core/api.js b/api/src/core/api.js index 3ce0265b..5930c8b4 100644 --- a/api/src/core/api.js +++ b/api/src/core/api.js @@ -198,11 +198,11 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) { }) app.get('/favicon.ico', (req, res) => { - res.sendFile(`${__dirname}/src/front/icons/favicon.ico`) + res.status(404).end(); }) app.get('/*', (req, res) => { - res.redirect('/api/serverInfo') + res.redirect('/api/serverInfo'); }) randomizeCiphers();