Implement ClassResourceInterface in controllers