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)
images.forEach((image) => {
image.id = state.images.length;
image.censored = false;
+ image.link = "";
image.comments = [];
io.emit('image', image);
state.images.push(image);