From 930684d92080195b633c0ada4de3c536cae90320 Mon Sep 17 00:00:00 2001 From: Sachin Bhat Date: Wed, 8 Feb 2017 03:25:10 +0530 Subject: [PATCH] Commit #8: Make chat.html as the default page --- server.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server.js b/server.js index 91a18832..80dad012 100644 --- a/server.js +++ b/server.js @@ -10,10 +10,8 @@ var server = http.createServer(function (request, response) { switch (path) { case '/': - path = "/index.html"; - case '/chat': - case '/transmitter.html': - fs.readFile(__dirname + path, function (error, data) { + path = "/chat.html"; + fs.readFile(__dirname + path, function (error, data) { if (error) { response.writeHead(404); response.write('File not found!');