Skip to content

Commit ab7cd6a

Browse files
author
codingChewie
committed
Adding Multiple Routes to the App
1 parent 788d9ed commit ab7cd6a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

app.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
11
const express = require('express')
2+
3+
const app = express()
4+
5+
app.get('/', (req, res) => {
6+
res.send('<h1>Home page</h1>')
7+
})
8+
9+
app.get('/', (req, res) => {
10+
res.send('<h1>Home page</h1>')
11+
})
12+
13+
app.listen(3000, () => console.log('The app is running on port 3000'))

0 commit comments

Comments
 (0)