Added pushEndpoint to /register call