github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/examples/extensions/README.md (about)

     1  # Extensions Example
     2  
     3  This example adds extra endpoints to the API. See [main.go](main.go) for example code. 
     4  
     5  ## Building and Running
     6  
     7  ```sh
     8  go build
     9  ./extensions
    10  ```
    11  
    12  Then test with:
    13  
    14  ```sh
    15  # First, create an app
    16  fn apps create myapp
    17  # And test
    18  curl http://localhost:8080/v1/custom1
    19  curl http://localhost:8080/v1/custom2
    20  curl http://localhost:8080/v1/apps/myapp/custom3
    21  curl http://localhost:8080/v1/apps/myapp/custom4
    22  ```