1
0
Fork 0
mirror of https://github.com/voltbonn/diversity.volt.link.git synced 2024-06-24 23:10:57 +00:00

Update index.js

This commit is contained in:
thomasrosen 2022-11-20 00:23:11 +01:00
parent 4ac1e0a314
commit d0fa2c1608

View file

@ -145,14 +145,10 @@ function showClient(res, blocks = []) {
res.send(index_file)
}
})
// The client needs to check if the block exists OR if a error page should be shown.
// AND the client should to correct the slug if it's wrong.
// (TODO: There currently is no function to find the correct slug from an id.)
}
app.get('/', async function (req, res, next) {
showClient(res) // call showClient to replace the default meta infos (__META_TITLE__, ...)
app.get('/', function (req, res, next) {
showClient(res) // show index.html
})
app.use(express.static(static_files_path))