Skip to content

Commit 644bb2b

Browse files
author
codingChewie
committed
Adding Multiple Routes to the App
1 parent ab7cd6a commit 644bb2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ app.get('/', (req, res) => {
66
res.send('<h1>Home page</h1>')
77
})
88

9-
app.get('/', (req, res) => {
10-
res.send('<h1>Home page</h1>')
9+
app.get('/hello', (req, res) => {
10+
res.send('<h1>Hello Foobar</h1>')
1111
})
1212

1313
app.listen(3000, () => console.log('The app is running on port 3000'))

0 commit comments

Comments
 (0)