]> git.cworth.org Git - zombocom-ai/blobdiff - index.js
Route /tardis to another page
[zombocom-ai] / index.js
index 6f2a62597395c90c1a2e48884edaf3b65a5ec028..46b536b854f1d659aede3e621e6e8077c24eca8f 100644 (file)
--- a/index.js
+++ b/index.js
@@ -68,6 +68,18 @@ app.get('/index.html', (req, res) => {
     res.sendFile(__dirname + '/index.html');
 });
 
+app.get('/tardis', (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');
+});
+
 io.on('connection', (socket) => {
 
     // First things first, tell the client their name (if any)
@@ -137,6 +149,7 @@ io.on('connection', (socket) => {
                 images.forEach((image) => {
                     image.id = state.images.length;
                     image.censored = false;
+                    image.link = "";
                     image.comments = [];
                     io.emit('image', image);
                     state.images.push(image);