cmda-bt / be-course-18-19

🎓 Backend · 2018-2019 · Curriculum and Syllabus
https://cmda-bt.github.io/be-course-18-19/docs
Other
15 stars 10 forks source link

Listing (Feature) #123

Closed MarcKunst closed 5 years ago

MarcKunst commented 5 years ago

Listing

Name

Marc Kunst

Class

Tech 4

Repo link

https://github.com/MarcKunst/Project-Tech

Summary

Assignments / homework week 2 (Express, EJS)

rijkvanzanten commented 5 years ago

Heya, good job 👍

// before
app.use(express.static('static'))

app.get('/', (req, res) => res.send('Hello World!'))

app.get('/about', (req, res) => res.send('This is the about page'))

// after
app
  .use(express.static('static'))
  .get('/', (req, res) => res.send('Hello World!'))
  .get('/about', (req, res) => res.send('This is the about page'))