Adding the edit feature of the crud

Set up the middleware for puts and deletes