bit improved index page
This commit is contained in:
parent
f5a93f1f57
commit
7a957ca09c
4 changed files with 58 additions and 20 deletions
|
|
@ -113,7 +113,8 @@ app.use('/', async (req, res, next) => {
|
|||
]
|
||||
|
||||
res.send(await render('index.html.twig', {
|
||||
games,
|
||||
gamesRunning: games.filter(g => !g.finished),
|
||||
gamesFinished: games.filter(g => !!g.finished),
|
||||
images: allImages(),
|
||||
}))
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue