login.js 345 Bytes
var http = require('http');
var fs = require('fs');
var app = http.createServer(function(request,response){
	var url=request.url;
	if(url == '/'){
		url = '/send.html';
    }
    if(url == '/loginmainpage'){
        url='/loginmainpage.html';
    }
	response.writeHead(200);
	response.end(fs.readFileSync(__dirname+url));
});

app.listen(8080);