summaryrefslogtreecommitdiff
path: root/bucky/app/router.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-10 04:42:16 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-10 04:42:16 +0100
commita932b664db987f2cf9ceefe9bb56e43793470d5e (patch)
treebd0722849164218e418cc032d5a8a50d6b106709 /bucky/app/router.js
parent9978bb56fc2c56ad52930bde9bcaa561158a158a (diff)
style search. LOTTA styling
Diffstat (limited to 'bucky/app/router.js')
-rw-r--r--bucky/app/router.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/bucky/app/router.js b/bucky/app/router.js
index 8104bd5..2fd8d83 100644
--- a/bucky/app/router.js
+++ b/bucky/app/router.js
@@ -91,7 +91,13 @@ module.exports = function(app){
function(req, res){
// delete a comment
})
-
+
+ app.get("/search/",
+ middleware.ensureAuthenticated,
+ function(req, res){
+ res.render("pages/search", {title: "search" })
+ }
+ )
app.get("/api/search",
middleware.ensureAuthenticated,
search.search,