diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-10-21 18:58:22 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-10-21 18:58:22 -0400 |
| commit | fffc000bd73b740318762747c07aa39adca1313a (patch) | |
| tree | 641fabd47937419d023a50471514a4f47177d36b /proxy | |
| parent | 2812b73724ed5fded35fa9b7fd383a6ce481e51a (diff) | |
stub in proxy
Diffstat (limited to 'proxy')
| -rw-r--r-- | proxy/index.js | 25 | ||||
| -rw-r--r-- | proxy/package.json | 11 |
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" +} |
