mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-16 05:00:24 +00:00
New routing
Ultimately few things change, it's mostly just a nicer syntax and slightly different expectations. The name of the value `dispatch` did not change, because the previous dispatch values will now fail if the code is not updated to using `cowboy_router:compile/1`. No constraints have been implemented in this commit.
This commit is contained in:
parent
68da864aeb
commit
a357c49d1b
6 changed files with 266 additions and 91 deletions
|
@ -61,8 +61,6 @@ environment values to perform.
|
|||
Routing middleware
|
||||
------------------
|
||||
|
||||
@todo Routing middleware value is renamed very soon.
|
||||
|
||||
The routing middleware requires the `dispatch` value. If routing
|
||||
succeeds, it will put the handler name and options in the `handler`
|
||||
and `handler_opts` values of the environment, respectively.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue