'use strict';
var Posts = module.parent.parent.require('./posts');
var Controllers = {};

Controllers.getPost = function(req, res, next){
	if(req.headers.host == "localhost:4567"){
		Posts.getPostData(req.params.pid,function(err,result){
			res.send(result);
		});
	}else{
		next();
	}
};

module.exports = Controllers;

@@ -135,52 +135,8 @@
 t)%7B%0A
-%09if(req.headers.host == %22localhost:4567%22)%7B%0A%09
 %09Pos
@@ -189,17 +189,16 @@
 ult)%7B%0A%09%09
-%09
 res.send
@@ -212,36 +212,12 @@
 );%0A%09
-%09%7D);%0A%09%7Delse%7B%0A%09%09next();%0A%09%7D%0A
 %7D;
+%0A%7D
 %0A%0Amo

remove localhost limit