var http = require('http');
var Navigation = require('../../../build/dist/Navigation');
var NavigateServer = require('./NavigateServer');

var server = http.createServer(function(req, res) {
	if (req.url !== '/favicon.ico') {
		Navigation.StateController.navigateLink(req.url);
		NavigateServer.getProps(function(props){
			res.write(NavigateServer.render(props));
			res.end();
		});
	} else {
		res.end();
	}
});

server.listen(8080);
var http = require('http');
var Navigation = require('../../../build/dist/Navigation');
var NavigateServer = require('./NavigateServer');

var server = http.createServer(function(req, res) {
	if (req.url !== '/favicon.ico') {
		Navigation.StateController.navigateLink(req.url);
		NavigateServer.getProps(function(props){
			Navigation.StateController.navigateLink(req.url);
			res.write(NavigateServer.render(props));
			res.end();
		});
	} else {
		res.end();
	}
});

server.listen(8080);
Reset State context after async returns
Reset State context after async returns
