mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fixes some route creation and updating bugs. (#526)
* Fixes some route creation and updating bugs. * Updated README * Added more info the quickstart * Updated based on PR comments. * Fixed based on comments. * Updated per comments.
This commit is contained in:
@@ -67,14 +67,16 @@ See examples of this in [/examples/extensions/main.go](/examples/extensions/main
|
||||
|
||||
## Middleware
|
||||
|
||||
Middleware enables you to add functionality to every API request. For every request, the chain of Middleware will be called
|
||||
in order allowing you to modify or reject requests, as well as write output and cancel the chain.
|
||||
Middleware enables you to add functionality to every API request. For every request, the chain of Middleware will be called
|
||||
in order allowing you to modify or reject requests, as well as write output and cancel the chain.
|
||||
|
||||
NOTES:
|
||||
|
||||
* middleware is responsible for writing output if it's going to cancel the chain.
|
||||
* cancel the chain by returning an error from your Middleware's Serve method.
|
||||
|
||||
See examples of this in [/examples/Middleware/main.go](/examples/middleware/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