Use a list for deck index

Not terribly useful yet, but easier to manually add to
This commit is contained in:
Adam Goldsmith 2017-09-28 12:59:30 -04:00
parent 1aa50927a8
commit 5c4936155e

View File

@ -90,6 +90,7 @@ server.listen(process.env.PORT || port);
console.log('listening on 8080'); console.log('listening on 8080');
function sendIndex(res) { function sendIndex(res) {
let decks = ["the_Unholy_Priest_update_2", "NZoths_Invasion_1.1"];
const html = ` const html = `
<html> <html>
<head> <head>
@ -97,7 +98,7 @@ function sendIndex(res) {
</head> </head>
<body> <body>
<ul> <ul>
<li><a href="deck/the_Unholy_Priest_update_2">the_Unholy_Priest_update_2</a></li> ${(decks.map(d => `<li><a href="deck/${d}">${d}</a></li>`).join(' '))}
</ul> </ul>
</body> </body>
</html>`; </html>`;