diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-04 01:27:57 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-04 01:27:57 -0500 |
| commit | 9dd3ae274650fba0deff45f04a666fe3ec5828a9 (patch) | |
| tree | 9e9af338d35eefe99f33c185192f1a0fe7dd0140 /StoneIsland/www/js | |
| parent | bd475ae6ae43cbe1d937ab7c4326ac0dda9bc81f (diff) | |
| parent | 80f1271c496e8e9af6c3b746d1481e23363add61 (diff) | |
merge
Diffstat (limited to 'StoneIsland/www/js')
| -rw-r--r-- | StoneIsland/www/js/index.js | 2 | ||||
| -rw-r--r-- | StoneIsland/www/js/sdk/_sdk.js | 17 | ||||
| -rw-r--r-- | StoneIsland/www/js/sdk/cart.js | 1 |
3 files changed, 11 insertions, 9 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js index a8c36ef1..e0b08351 100644 --- a/StoneIsland/www/js/index.js +++ b/StoneIsland/www/js/index.js @@ -5,7 +5,7 @@ var app = (function(){ app.bind() app.build() - sdk.init({ env: 'production' }) + sdk.init({ env: "test" }) if (window.cordova) { document.addEventListener('deviceready', app.ready, false) 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 } } diff --git a/StoneIsland/www/js/sdk/cart.js b/StoneIsland/www/js/sdk/cart.js index 9f9d81f1..9fb9b11f 100644 --- a/StoneIsland/www/js/sdk/cart.js +++ b/StoneIsland/www/js/sdk/cart.js @@ -13,6 +13,7 @@ sdk.cart = (function(){ "x-yoox-appname": auth.appname, "x-yoox-device": auth.device, }, + data: "{}", // data: opt.data, success: function(data){ console.log(data) |
