View on GitHub

reading-notes

CodeFellows Class Reading Notes

Express Routing

Express Middleware

CRUD Operations with REST and Express

REST Method CRUD Operation Express Method Route Function
POST CREATE app.post(‘/resource’) Create a New Record
GET READ app.get(‘/resource’) Retrieve 1+ Records
PUT UPDATE app.put(‘/resource/:id’) Replace Record with an updated version
DESTROY DELETE app.get(‘/resource/:id’) Remove a Record

Server Testing

Test Pyramid

Express.js Fundamentals - 6 - Middleware Explained


Home