projects page
This commit is contained in:
parent
13779389a0
commit
3f6b85a891
@ -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) => {
|
||||
res.send({
|
||||
errorMessage: 'FAILURE'
|
||||
|
@ -2,4 +2,5 @@
|
||||
<h1>{{title}}</h1>
|
||||
<a href="/">Home</a>
|
||||
<a href="/about">About</a>
|
||||
<a href="/projects">Projects</a>
|
||||
</header>
|
||||
|
13
views/projects.hbs
Normal file
13
views/projects.hbs
Normal 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>
|
Loading…
Reference in New Issue
Block a user