Skip to content

Commit

Permalink
Commit rauchg#8: Make chat.html as the default page
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSachinSBhat committed Feb 7, 2017
1 parent c719f1b commit 930684d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
Expand Down

0 comments on commit 930684d

Please sign in to comment.