aboutsummaryrefslogtreecommitdiffstats
path: root/routes/users.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/users.js')
-rw-r--r--routes/users.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/routes/users.js b/routes/users.js
index 28b89797..36914152 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -54,7 +54,7 @@
if (req.query.verified != null) {
options.verified = true;
}
- if (obj.logo.length > 3) {
+ if (obj.logo && obj.logo.length > 3) {
ext = obj.logo.substr(obj.logo.length - 3);
path = "public/assets/img/logos/" + obj.username + "." + ext;
fs.lstat(path, function(err, stats) {
@@ -243,6 +243,19 @@
});
}
});
+ },
+ wallet: function(req, res) {
+ return res.render('users/wallet', {
+ user: req.params.user,
+ layout: 'layout',
+ navigation: true,
+ js: (function() {
+ return global.js;
+ }),
+ css: (function() {
+ return global.css;
+ })
+ });
}
};
};