diff options
| author | Julie Lala <jules@okfoc.us> | 2014-06-08 12:22:59 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2014-06-08 12:22:59 -0400 |
| commit | d385f80d0942494410432f11d3f3ca0f05d9e4a9 (patch) | |
| tree | 013c274d1311b58f3f9ea9c4716ce5e2124a60ce /server/lib/views.js | |
| parent | 6dc5e91ebf84181bc8ca1057d5338296d918931c (diff) | |
new views and redirection logic
Diffstat (limited to 'server/lib/views.js')
| -rw-r--r-- | server/lib/views.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/server/lib/views.js b/server/lib/views.js index a8723eb..4f2402b 100644 --- a/server/lib/views.js +++ b/server/lib/views.js @@ -5,17 +5,19 @@ var User = require('./schemas/User'), config = require('../../config'), _ = require('lodash'); -exports.login = function (req, res) { - res.render('login', { +var views = {} + +views.modal = function (req, res) { + res.render('modal', { }); }; -exports.home = function (req, res) { +views.home = function (req, res) { res.render('home', { }) } -exports.profile = function (req, res) { +views.profile = function (req, res) { var username = req.params[0] if (username) { User.findOne({ username: username }, function (err, user) { @@ -43,3 +45,5 @@ exports.profile = function (req, res) { }) } } + +module.exports = views |
