From 906c9786dca5ddfb26995ebde780a95b1dc4e98d Mon Sep 17 00:00:00 2001 From: hiba akel Date: Mon, 15 May 2017 12:30:14 +0300 Subject: [PATCH] make a location view and render in the server #24 --- src/server.js | 4 +++- views/location.hbs | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 views/location.hbs diff --git a/src/server.js b/src/server.js index 9e15019..f609441 100644 --- a/src/server.js +++ b/src/server.js @@ -24,7 +24,9 @@ app.use(express.static(path.join(__dirname, '../public'), staticOptions)) app.get('/', (req, res) => { res.render('home') }) - +app.get('/location', (req, res) => { + res.render('location') +}) app.listen(app.get('port'), () => { console.log('Express server running on port: ', app.get('port')) }) diff --git a/views/location.hbs b/views/location.hbs new file mode 100644 index 0000000..c260923 --- /dev/null +++ b/views/location.hbs @@ -0,0 +1,7 @@ +
+

location

+ + + {{{Accessibility}}} + +