From d1ecbe6edc9dc0886904cd881c87966b26c20405 Mon Sep 17 00:00:00 2001 From: Ian Dees Date: Sun, 2 Jun 2013 19:10:26 +0000 Subject: [PATCH] Initial impl of myapplications. --- controllers/backpack.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/controllers/backpack.js b/controllers/backpack.js index f4fc036..9a2fd8d 100644 --- a/controllers/backpack.js +++ b/controllers/backpack.js @@ -92,6 +92,17 @@ module.exports = function (app) { }); }); + app.get('/myapplications', [ + loggedIn, + openbadger.middleware('getUserBadge') + ], function (req, res, next) { + var data = req.remote; + + res.render('user/backpack.html', { + items: data.badges + }); + }); + app.get('/favorites/:view?', function (req, res, next) { var badge = { thumbnail: '/media/images/badge.png',