Files
fn-serverless/examples/extensions
2017-05-15 11:00:15 -07:00
..
2017-01-30 12:14:28 -08:00
2017-05-15 11:00:15 -07:00
2017-01-30 23:43:23 +01:00

Extensions Example

This example adds extra endpoints to the API. See main.go for example code.

Building and Running

go build
./extensions

Then test with:

# First, create an app
fn apps create myapp
# And test
curl http://localhost:8080/v1/custom1
curl http://localhost:8080/v1/custom2
curl http://localhost:8080/v1/apps/myapp/custom3
curl http://localhost:8080/v1/apps/myapp/custom4