Pass the server into the endpoint

The CPT class requires a `WP_JSON_Server` instance to be passed into the constructor.

This should fix your problem, hopefully :)