summaryrefslogtreecommitdiff
path: root/proxy
diff options
context:
space:
mode:
Diffstat (limited to 'proxy')
-rw-r--r--proxy/index.js25
-rw-r--r--proxy/package.json11
2 files changed, 36 insertions, 0 deletions
diff --git a/proxy/index.js b/proxy/index.js
new file mode 100644
index 00000000..c2e12c60
--- /dev/null
+++ b/proxy/index.js
@@ -0,0 +1,25 @@
+var http = require('http')
+var PORT = 4567
+
+var server = http.createServer(function (req, res){
+ res.end('It Works!! Path Hit: ' + req.url)
+ console.log(req.headers)
+})
+
+server.listen(PORT, function(){
+ console.log("Proxy listening on: http://localhost:%s", PORT)
+})
+
+/*
+ headers: {
+ "x-yoox-appname": auth.appname,
+ "x-yoox-account-token": auth.access_token,
+ "x-yoox-device": auth.device,
+ "x-yoox-api-key": auth.apikey,
+ "x-yoox-cart-token": cart.token,
+ },
+
+ proxy content body
+ proxy method
+ proxy query string
+*/ \ No newline at end of file
diff --git a/proxy/package.json b/proxy/package.json
new file mode 100644
index 00000000..f7304d43
--- /dev/null
+++ b/proxy/package.json
@@ -0,0 +1,11 @@
+{
+ "name": "stone-island-proxy",
+ "version": "1.0.0",
+ "description": "local proxy for stone island api",
+ "main": "index.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "author": "okfocus",
+ "license": "LNT"
+}