From ceba1e6492485dba09ef2989a61c090480543072 Mon Sep 17 00:00:00 2001 From: HumairAK Date: Wed, 27 Jul 2016 17:06:53 -0400 Subject: added privacy and terms pages, added routes as well --- .idea/misc.xml | 13 --------- routes/index.js | 10 +++++++ views/partials/footer.hbs | 4 +-- views/privacy_policy.hbs | 12 ++++++++ views/terms_and_conditions.hbs | 63 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 87 insertions(+), 15 deletions(-) delete mode 100644 .idea/misc.xml create mode 100644 views/privacy_policy.hbs create mode 100644 views/terms_and_conditions.hbs diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 72abef0..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/routes/index.js b/routes/index.js index 4117e41..b2a90dc 100644 --- a/routes/index.js +++ b/routes/index.js @@ -23,6 +23,16 @@ router.get('/about', function(req, res, next) { res.render('about'); }); +/** Serve the terms_and_conditions.hbs page */ +router.get('/terms_and_conditions', function(req, res, next) { + res.render('terms_and_conditions'); +}); + +/** Serve the privacy_poicy.hbs page */ +router.get('/privacy_policy', function(req, res, next) { + res.render('privacy_policy'); +}); + /** Serve the profile page of a user with given username */ router.get('/public_profile/:username', function(req,res,next){ diff --git a/views/partials/footer.hbs b/views/partials/footer.hbs index b956a1f..5da4147 100644 --- a/views/partials/footer.hbs +++ b/views/partials/footer.hbs @@ -4,8 +4,8 @@