Skip to content

Latest commit

 

History

History
executable file
·
28 lines (22 loc) · 464 Bytes

File metadata and controls

executable file
·
28 lines (22 loc) · 464 Bytes

Gateway with Javascript

This recipe is a gateway which runs some javascript.

Installation

  • Install Go

Setup

git clone https://github.com/project-flogo/contrib/activity/jsexec
cd jsexec/examples/microgateway/api

Testing

Start the gateway:

go run example.go

Run the following command:

curl http://localhost:9096/calculate"

You should see the following like response:

{"sum":3}