- GET /employees
- GET /employee/:id
- POST /employee
- DELETE /employee/:id
- UPDATE /employee/:id
Learning Objective
- Accepting Data from Client
- Req Params
- Req Body - JSON
- Req Query Params
- Support different request methods
- How to get Req body as JSON -
app.use(express.json())
- Response - Status Code
- Persistent Storage
- Handle CORS issue
- Host static content - like images, html, css, JS, ...
Static vs Dynamic