Pass user to api and foursquare api pages

This commit is contained in:
Sahat Yalkabov
2013-11-19 17:29:07 -05:00
parent 13bd8ef9c8
commit 594760b2e6

View File

@ -16,7 +16,8 @@ var foursquareAccessToken = 'MY_FOURSQUARE_ACCESS_TOKEN';
exports.apiBrowser = function(req, res) {
res.render('api', {
title: 'API Browser'
title: 'API Browser',
user: req.user
});
};
@ -24,7 +25,8 @@ exports.apiBrowser = function(req, res) {
exports.foursquare = function(req, res) {
res.render('api/foursquare', {
title: 'Foursquare API'
title: 'Foursquare API',
user: req.user
});
};