added demo iframe page

This commit is contained in:
Eugene Pankov
2022-05-14 23:59:06 -07:00
parent 953580a943
commit 3cb20b9300
6 changed files with 122 additions and 1 deletions

View File

@@ -67,6 +67,10 @@ function start () {
res.sendFile(join(DIST_FOLDER, 'terminal.html'))
})
app.get(['/demo'], (req, res) => {
res.sendFile(join(DIST_FOLDER, 'demo.html'))
})
for (const [key, value] of Object.entries(hardlinks)) {
app.get(`/go/${key}`, (req, res) => res.redirect(value))
}