We've provided the code for a basic list of items. Now it's your turn to extend it.
- Create a new class array called
@@cart
to hold any items in your cart - Create a new route called
/cart
to show the items in your cart - Create a new route called
/add
that takes in aGET
param with the keyitem
. This should check to see if that item is in@@items
and then add it to the cart if it is. Otherwise give an error
Please open a GitHub issue or pull-request. Provide a detailed description that explains the issue you have found or the change you are proposing. Then "@" mention your instructor on the issue or pull-request, and send them a link via Connect.
PHRG Rack Routes and GET Params