mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
API extension points (#473)
* API endpoint extensions working. extensions example. * Added server.NewEnv and some docs for the API extensions example. extensions example. example main.go. * Uncommented special handler stuff. * Added section in docs for extending API linking to example main.go. * Commented out special_handler test * Changed to NewFromEnv
This commit is contained in:
@@ -88,6 +88,12 @@ Triggered during requests to the following routes:
|
||||
- GET /r/:app/:route
|
||||
- POST /r/:app/:route
|
||||
|
||||
## Adding API Endpoints
|
||||
|
||||
You can add API endpoints by using the `AddEndpoint` and `AddEndpointFunc` methods to the IronFunctions server.
|
||||
|
||||
See examples of this in [/examples/extensions/main.go](/examples/extensions/main.go).
|
||||
|
||||
## Special Handlers
|
||||
|
||||
To understand how **Special Handlers** works you need to understand what are **Special Routes**.
|
||||
|
||||
Reference in New Issue
Block a user