aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-03-02 00:02:05 +0100
committerLoïc Hoguin <[email protected]>2013-03-02 00:02:05 +0100
commit23b3b038e930646af7f27a439e9dca1cf0c0e453 (patch)
tree708c5ee6b4aa9a9f905289dd02509231c15fa052
parent182b647a11faeb6e793d20b0173bdd59b8926099 (diff)
downloadcowboy-23b3b038e930646af7f27a439e9dca1cf0c0e453.tar.gz
cowboy-23b3b038e930646af7f27a439e9dca1cf0c0e453.tar.bz2
cowboy-23b3b038e930646af7f27a439e9dca1cf0c0e453.zip
Fix cowboy_router types
-rw-r--r--src/cowboy_router.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_router.erl b/src/cowboy_router.erl
index adb1711..7c86653 100644
--- a/src/cowboy_router.erl
+++ b/src/cowboy_router.erl
@@ -37,12 +37,12 @@
| {atom(), function, fun ((binary()) -> true | {true, any()} | false)}].
-export_type([constraints/0]).
--type route_match() :: binary() | string().
+-type route_match() :: '_' | binary() | string().
-type route_path() :: {Path::route_match(), Handler::module(), Opts::any()}
| {Path::route_match(), constraints(), Handler::module(), Opts::any()}.
-type route_rule() :: {Host::route_match(), Paths::[route_path()]}
| {Host::route_match(), constraints(), Paths::[route_path()]}.
--opaque routes() :: [route_rule()].
+-type routes() :: [route_rule()].
-export_type([routes/0]).
-type dispatch_match() :: '_' | <<_:8>> | [binary() | '_' | '...' | atom()].