area1707 / grace-shopper

3 stars 0 forks source link

Admin - OrderMgmt - Specific Order Details #31

Open rkaur01 opened 7 years ago

rkaur01 commented 7 years ago

Story: view details of a specific order, so that I can review it and update its status

Implementation: an Express route on the backend (GET 'api/admin/orders/orderId') should find order by orderId and serve up the orderId, orderDate, customerName, orderStatus, and totalCost from the db. The component for this page should also include a form to update orderStatus. Special access control is needed, only the admin should be able to view this.

alicec15 commented 7 years ago

orderDate is the createdAt column in our db tables