adding update method to posts controller
enable update method in routes for posts
converting to http method name to uppercase
adding tests for updating posts