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:
Travis Reeder
2017-02-24 16:04:04 -08:00
committed by GitHub
parent bc9f15d5f4
commit 6119f07007
7 changed files with 108 additions and 33 deletions

View File

@@ -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**.