In this activity, you'll be refactoring a sample Express server using the spoilers from this activity: Find an object in an array.
- Download or fork/clone this Gist into your workspace.
- Using this sample code for
Array.find()
, define an array of objects calledguild
. - Refactor the
GET /api/guild/:class
endpoint so that it returns a single guild member that matches the requested:class
route parameter. - Return a JSON
404 Not Found
response if the:class
isn't found.