Files
fn-serverless/examples/extensions
Travis Reeder 48e3781d5e Rename to GitHub (#3)
* circle

* Rename to github and fn->cli

*  Rename to github and fn->cli
2017-07-26 10:50:19 -07:00
..
2017-01-30 12:14:28 -08:00
2017-07-26 10:50:19 -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