mirror of
https://github.com/italicsjenga/handlebars-ipinfo.git
synced 2024-11-24 05:21:29 +11:00
Remove debugging
This commit is contained in:
parent
cc681085c6
commit
b7290ce3bf
4
index.ts
4
index.ts
|
@ -16,8 +16,6 @@ app.set('view engine', 'handlebars');
|
|||
|
||||
app.get('/', function (req, res) {
|
||||
getIpInfo(req.ip).done(function (geoinfo: IPGeoJson) {
|
||||
console.log("ip: " + geoinfo.ip);
|
||||
console.log("req.ip: " + req.ip);
|
||||
res.render('home', {
|
||||
helpers: {
|
||||
ip: function () { return geoinfo.ip; },
|
||||
|
@ -28,7 +26,7 @@ app.get('/', function (req, res) {
|
|||
postal: function () { return geoinfo.postal }
|
||||
}
|
||||
});
|
||||
}); //replace with req.ip
|
||||
});
|
||||
});
|
||||
|
||||
app.listen(3000, 'localhost');
|
||||
|
|
Loading…
Reference in a new issue