Resolving the http promise in the service and not in the controller