404 page functions
This commit is contained in:
parent
737c788c76
commit
be956d305f
2 changed files with 27 additions and 32 deletions
16
index.js
16
index.js
|
@ -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()
|
Loading…
Add table
Add a link
Reference in a new issue