-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
884c1c8
commit e772bc1
Showing
3 changed files
with
1,021 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const express = require('express'); | ||
const app = express(); | ||
|
||
|
||
app.get('' , (req , res) => { | ||
res.send('<h1>Welcome , this is home page</h1>'); | ||
}); | ||
|
||
app.get('/about' , (req , res) => { | ||
res.end('<h1>Welcome , this is about page</h1>'); | ||
}); | ||
|
||
app.get('/help' , (req , res) => { | ||
res.send('<h1>Welcome this is help page</h1>'); | ||
}) | ||
|
||
app.listen(8000 , () => { | ||
console.log('Server running on the port 8000') | ||
}); |
Oops, something went wrong.