Update Endpoint.php

Cleanup