{"action":"closed","issue":{"url":"https://api.github.com/repos/spark/sparkjs/issues/54","labels_url":"https://api.github.com/repos/spark/sparkjs/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/spark/sparkjs/issues/54/comments","events_url":"https://api.github.com/repos/spark/sparkjs/issues/54/events","html_url":"https://github.com/spark/sparkjs/issues/54","id":60170591,"number":54,"title":"Ability to point Spark JS at different endpoints","user":{"login":"jme783","id":4605360,"avatar_url":"https://avatars.githubusercontent.com/u/4605360?v=3","gravatar_id":"","url":"https://api.github.com/users/jme783","html_url":"https://github.com/jme783","followers_url":"https://api.github.com/users/jme783/followers","following_url":"https://api.github.com/users/jme783/following{/other_user}","gists_url":"https://api.github.com/users/jme783/gists{/gist_id}","starred_url":"https://api.github.com/users/jme783/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jme783/subscriptions","organizations_url":"https://api.github.com/users/jme783/orgs","repos_url":"https://api.github.com/users/jme783/repos","events_url":"https://api.github.com/users/jme783/events{/privacy}","received_events_url":"https://api.github.com/users/jme783/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-06T22:51:25Z","updated_at":"2015-06-09T18:13:30Z","closed_at":"2015-06-09T18:13:30Z","body":"In development mode, I'd like to point Spark JS at our staging cloud. However, the `baseUrl` property used to create the `Spark.api` object hardcodes `api.spark.io`, making it difficult to configure at runtime. Ideally, it would be great if you could change the `baseUrl` when Spark JS gets booted up in the constructor.\r\n"}}