Update README.md

Changes the sample code back to using `Endpoint`'s `apply` method instead of creating an instance.