0.0.2 • Published 7 years ago

storjshare-daemon-proxy v0.0.2

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
7 years ago

storjshare-daemon-proxy

node npm license

reverse proxy which makes storjshare-daemon api available via http with basic-auth

Requests template:

Request:

POST /method
  {"param": any} - optional post data

Response:

{
  "result": Boolean,
  "error": String,
  "data": Object - optional if api returns something
}

Example:

Request:

POST /restart
  {"param": "*"} - restarts all shares

Response:

{
  "result": true,
  "error": ""
}