Wrong variable name

There was a wrong variable name in the exemple of adding endpoint extending WP_JSON_CustomPostType