Use a list for deck index
Not terribly useful yet, but easier to manually add to
This commit is contained in:
parent
1aa50927a8
commit
5c4936155e
@ -90,6 +90,7 @@ server.listen(process.env.PORT || port);
|
||||
console.log('listening on 8080');
|
||||
|
||||
function sendIndex(res) {
|
||||
let decks = ["the_Unholy_Priest_update_2", "NZoths_Invasion_1.1"];
|
||||
const html = `
|
||||
<html>
|
||||
<head>
|
||||
@ -97,7 +98,7 @@ function sendIndex(res) {
|
||||
</head>
|
||||
<body>
|
||||
<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>
|
||||
</body>
|
||||
</html>`;
|
||||
|
Loading…
Reference in New Issue
Block a user