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/:classendpoint so that it returns a single guild member that matches the requested:classroute parameter. - Return a JSON
404 Not Foundresponse if the:classisn't found.