summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/sdk/_sdk.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/sdk/_sdk.js')
-rw-r--r--StoneIsland/www/js/sdk/_sdk.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/StoneIsland/www/js/sdk/_sdk.js b/StoneIsland/www/js/sdk/_sdk.js
index dedcd5f0..a0250f77 100644
--- a/StoneIsland/www/js/sdk/_sdk.js
+++ b/StoneIsland/www/js/sdk/_sdk.js
@@ -1,19 +1,20 @@
var sdk = (function(){
var sdk = {}
- var endpoint = "https://sandbox.api.yoox.biz/"
+ var endpoint = "https://secure.api.yoox.biz/"
+ // var endpoint = "http://api.yoox.biz/"
sdk.init = function(opt){
switch (opt.env || "development") {
- case "production":
- endpoint = "https://secure.api.yoox.biz/"
- break
- case "test":
- endpoint = "http://lvh.me:4567/"
+ case 'test':
+ endpoint = "http://lvh.me:9090/"
break
- case "development":
default:
- endpoint = "https://sandbox.api.yoox.biz/"
+ case 'development':
+ endpoint = "http://api.yoox.biz/"
+ break
+ case 'production':
+ endpoint = "https://secure.api.yoox.biz/"
break
}
}