Skip to content
Permalink
Browse files
Added a /hello route
  • Loading branch information
mitroio committed Oct 2, 2018
1 parent fd7d34b commit 6155efd373addba54f375b69d3b923fcabab2219
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
@@ -16,6 +16,10 @@ app.get('/', (req,res) => {
res.render('home')
})

app.get('/hello',(req,res) => {
res.render('hello')
})

app.get('/date', (req, res) => {
const d = new Date()
const date = `${d.getDate()}/${d.getMonth()+1}/${d.getFullYear()}`
@@ -9,4 +9,7 @@ h2 {

img {
float: right;
}
.header1 {
color: red;
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,2 @@
<h1 class='header1'>Hello World</h1>
<img src='images/smiley.jpg'>

0 comments on commit 6155efd

Please sign in to comment.