HeideQueen
9/11/2019 - 6:18 PM

RESTful Routes

RESTful Routes

INDEX   - /dogs          - GET    - Dog.find()
NEW     - /dogs/new      - GET    - N/A
CREATE  - /dogs          - POST   - Dog.create()
SHOW    - /dogs/:id      - GET    - Dog.findById()
EDIT    - /dogs/:id/edit - GET    - Dog.findById()
UPDATE  - /dogs/:id      - PUT    - Dog.findByIdAndUpdate()
DESTROY - /dogs/:id      - DELETE - Dog.findByIdAndRemove()