projects page

This commit is contained in:
Tyrel Souza 2017-11-27 22:13:02 -05:00
parent 13779389a0
commit 3f6b85a891
3 changed files with 20 additions and 0 deletions

View File

@ -46,6 +46,12 @@ app.get('/about', (req, res) => {
}) })
}) })
app.get('/projects', (req, res) => {
res.render('projects.hbs', {
title: "Projects Page",
})
})
app.get('/bad', (req, res) => { app.get('/bad', (req, res) => {
res.send({ res.send({
errorMessage: 'FAILURE' errorMessage: 'FAILURE'

View File

@ -2,4 +2,5 @@
<h1>{{title}}</h1> <h1>{{title}}</h1>
<a href="/">Home</a> <a href="/">Home</a>
<a href="/about">About</a> <a href="/about">About</a>
<a href="/projects">Projects</a>
</header> </header>

13
views/projects.hbs Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>About Page</title>
</head>
<body>
{{> header}}
<p>Profile page here</p>
{{>footer}}
</body>
</html>