added add server

This commit is contained in:
CorwinDev committed 2022-08-05 20:09:35 +02:00
1 parent b2cd1691af
commit a3e6692d7b
8 files changed
+69 -45

No files matched your search

+3
View File
@@ -122,6 +122,9 @@ app.get("/sitemap.xml", async function (req, res) {
res.set('Content-Type', 'text/xml');
res.send(`<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="https://www.google.com/schemas/sitemap-image/1.1">${link}</urlset>`);
});
app.get('/invite', function (req, res) {
res.redirect(client.config.bot.bsl.invite);
});
app.use((req, res, next) => {
if (res.statusCode === 404) {
req.session.error = "Page not found";