X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=index.js;fp=index.js;h=04fe9bb0c65152eb1537d98a08e2315ca3430655;hb=1e4934e341f9119dad52c27856e80645a1427470;hp=b149d09b58733ac1ab0b9da9fae802b2ff304446;hpb=affd7ecf524e51786710a87d6056f7f0a3e6d0b1;p=zombocom-ai diff --git a/index.js b/index.js index b149d09..04fe9bb 100644 --- a/index.js +++ b/index.js @@ -121,17 +121,12 @@ app.get('/index.html', (req, res) => { res.sendFile(__dirname + '/index.html'); }); -app.get('/tardis', (req, res) => { +function tardis_app(req, res) { res.sendFile(__dirname + '/tardis.html'); -}); - -app.get('/tardis/', (req, res) => { - res.sendFile(__dirname + '/tardis.html'); -}); +} -app.get('/tardis/index.html', (req, res) => { - res.sendFile(__dirname + '/tardis.html'); -}); +app.get('/tardis', tardis_app); +app.get('/tardis/', tardis_app); io.on('connection', (socket) => {