1.0.0 • Published 5 years ago
@fofx/web v1.0.0
fofx-web
An input/output plugin for HTTP requests for fofx
- type:
"web"
- params (these go in your plugins.json):
- port int this is the port your server listens on (default: 9999)
- input params (these go in your nano.json input key):
- endpoint string this will trigger on a request to http://localhost:\<port>/api/\<endpoint>
- response bool should the nano's return value be forwarded as the request's response.
- output params (these go in your nano.json output key):
Sample plugins.json
[
{
"name": "fofx-web",
"params": {
"port": 5000
}
}
]
Sample nano.json
{
"input": {
"type": "web",
"endpoint": "foo",
"response": true
},
"output": {
"type": "web",
"method": "POST",
"url": "http://localhost:5000/api/bar"
}
}
1.0.0
5 years ago