api/core: remove favicon

This commit is contained in:
wukko 2024-08-02 22:35:49 +06:00
parent 012fadd2f0
commit f66ae63d57
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -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();