Remove trailing slash from endpoint