function route(handle, pathname){
	console.log('About to route a request for ' + pathname);
	if(typeof handle[pathname] === 'function'){
		handle[pathname]();
	}else{
		console.log("No request handler found for " + pathname);
	}
}



exports.route = route; 

@@ -24,16 +24,21 @@
 pathname
+, res
 )%7B%0A%09cons
@@ -154,16 +154,19 @@
 thname%5D(
+res
 );%0A%09%7Dels
@@ -231,16 +231,111 @@
 e);%0A
+%09%09res.writeHead(404, %7B'Content-Type': 'text/plain'%7D);%0A%09%09res.write(%22404 Not Found%22);%0A%09%09res.end();%0A
 %09%7D%0A%7D%0A%0A
-%0A%0A
 expo

Update router.js