404 page functions

This commit is contained in:
Bingus_Violet 2024-02-08 17:30:52 -06:00
parent 737c788c76
commit be956d305f
2 changed files with 27 additions and 32 deletions

View file

@ -166,18 +166,4 @@ function socketeer() {
})
}
socketeer()
// app.get('/index.html', async (req, res) => {
// console.log(req.params[0])
// var html = await (pageUpdate(req.params[0]))
// res.send(minify.minify(html))
// })
app.use((req, res, next) => {
res.status(404).send(`
<link rel="stylesheet" href="/style.css">
<h1>404</h1>
<p>Uh oh... I think your lost? There's nothing here :P</p>
`)
})
socketeer()