diff options
Diffstat (limited to 'proxy/index.js')
| -rw-r--r-- | proxy/index.js | 25 |
1 files changed, 25 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 |
