'use strict';

/**
 * @ngdoc service
 * @name openSenseMapApp.OpenSenseBoxAPI
 * @description Defines the settings for the OpenSenseBox API such as the URL
 * # OpenSenseBox
 * Factory in the openSenseMapApp.
 */
angular.module('openSenseMapApp')
  .factory('OpenSenseBoxAPI', function ($resource) {
  	var api = {
  		//url: 'http://api.opensensemap.org'
  		url: 'http://opensensemap.org:9000'
  		//url: 'http://localhost:8000'
  	};
    return api;
  });

'use strict';

/**
 * @ngdoc service
 * @name openSenseMapApp.OpenSenseBoxAPI
 * @description Defines the settings for the OpenSenseBox API such as the URL
 * # OpenSenseBox
 * Factory in the openSenseMapApp.
 */
angular.module('openSenseMapApp')
	.factory('OpenSenseBoxAPI', function ($resource) {
		var api = {
			url: 'https://api.opensensemap.org'
		};
		return api;
	});

use https api