diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-09-06 01:31:50 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-09-06 01:31:50 -0400 |
| commit | c88806506d2f8845a9fb914c960d0b6bbc5a8e1e (patch) | |
| tree | c271bb35972175d286f62ecfce76a8fce50f6aa7 /lib/index.js | |
| parent | 0d0c04ad510264f2dbd2deb3bbf0b0d0c0605a62 (diff) | |
display hootbox
Diffstat (limited to 'lib/index.js')
| -rw-r--r-- | lib/index.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/index.js b/lib/index.js index 51a8e07..7732001 100644 --- a/lib/index.js +++ b/lib/index.js @@ -72,10 +72,15 @@ site.route = function(){ res.redirect('/index') }) app.get("/login", function(req, res){ - res.render("pages/login", { title: "" }) + res.render("pages/login", { + title: "" + }) }) app.get("/index", middleware.ensureAuthenticated, function(req, res){ - res.render("pages/index", { title: fortune("titles") }) + res.render("pages/index", { + title: fortune("titles"), + hoot_text: fortune("hoots"), + }) }) app.post("/api/login", auth.loggedInLocal) app.get("/api/index", |
