MODULO Full Stack Web Development: The Ultimate Master SagaTHEORY
Design a small read endpoint
Create an Express GET route for /api/missions that returns a JSON array. Add a separate GET route for one mission by ID and try both an existing ID and a missing ID.
Check your work
With an empty collection, the list should return HTTP 200 and []. A missing individual item should return 404. These responses let the UI distinguish an empty list from a link to a missing resource.
