mirror of
https://github.com/voltbonn/diversity.volt.link.git
synced 2024-09-28 12:53:06 +00:00
Update index.js
This commit is contained in:
parent
4ac1e0a314
commit
d0fa2c1608
8
index.js
8
index.js
|
@ -145,14 +145,10 @@ function showClient(res, blocks = []) {
|
||||||
res.send(index_file)
|
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) {
|
app.get('/', function (req, res, next) {
|
||||||
showClient(res) // call showClient to replace the default meta infos (__META_TITLE__, ...)
|
showClient(res) // show index.html
|
||||||
})
|
})
|
||||||
|
|
||||||
app.use(express.static(static_files_path))
|
app.use(express.static(static_files_path))
|
||||||
|
|
Loading…
Reference in a new issue