area1707/grace-shopper

Admin - OrderMgmt - Specific Order Details

Opened this issue · 1 comments

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.

orderDate is the createdAt column in our db tables