pub fn expose_with_endpoint(obj: &JsValue, endpoint: &JsValue)
Serves calls on endpoint, dispatching them onto obj.
endpoint
obj