I am using connect to serve some static webpages like this:
var connect = require("connect");
var nowjs = require("now");
var io = require("socket.io");
var app = connect.createServer(
connect.static(__dirname + '/public')
I am getting this response: " Cannot GET / " after I added a simple index.html at the /public directory on the same directory as the app.js file. I got the response when I tried to view the page on my browser.
Can someone explain to me why this response is coming? And how can I solve this?