var http = require('http');
http.createServer(function (req, res) {
if (req.url == '/')
{
req.url += "a.html";
//facebookAPI(req,res);
}
}).listen(1337);
when I typed the address in the browser it was not calling that url.
Any thought Thank you.
Here is how you could serve that file. This is untested!
There are better ways to accomplish the same thing, but this should get you started.