diff options
author | Loïc Hoguin <[email protected]> | 2013-01-28 16:53:09 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-01-28 16:53:09 +0100 |
commit | a357c49d1bdbc524a9cdf1f11b9aed66cac47f59 (patch) | |
tree | a41482169e7507504deffe678a9201d2d6ef8038 /test/autobahn_SUITE.erl | |
parent | 68da864aeb41746cb1a935f3b505a494e0abb259 (diff) | |
download | cowboy-a357c49d1bdbc524a9cdf1f11b9aed66cac47f59.tar.gz cowboy-a357c49d1bdbc524a9cdf1f11b9aed66cac47f59.tar.bz2 cowboy-a357c49d1bdbc524a9cdf1f11b9aed66cac47f59.zip |
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.
Diffstat (limited to 'test/autobahn_SUITE.erl')
-rw-r--r-- | test/autobahn_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/autobahn_SUITE.erl b/test/autobahn_SUITE.erl index f9d5a01..61cf631 100644 --- a/test/autobahn_SUITE.erl +++ b/test/autobahn_SUITE.erl @@ -75,8 +75,8 @@ end_per_group(Listener, _Config) -> %% Dispatch configuration. init_dispatch() -> - [{[<<"localhost">>], [ - {[<<"echo">>], websocket_echo_handler, []}]}]. + cowboy_router:compile([{"localhost", [ + {"/echo", websocket_echo_handler, []}]}]). %% autobahn cases |