diff options
author | Loïc Hoguin <[email protected]> | 2013-01-30 22:13:31 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-01-30 22:13:31 +0100 |
commit | f96e20aef7cce6d47535ab63c36452f6c9e1c444 (patch) | |
tree | b6ae3cd187ebe6d6c2eb48819f4cd4be0253757f /examples/static/src/static_app.erl | |
parent | eaaa81cce693e6dbbe2a48a594cd4bcd424c0495 (diff) | |
download | cowboy-f96e20aef7cce6d47535ab63c36452f6c9e1c444.tar.gz cowboy-f96e20aef7cce6d47535ab63c36452f6c9e1c444.tar.bz2 cowboy-f96e20aef7cce6d47535ab63c36452f6c9e1c444.zip |
Rename example 'static' to 'static_world' to avoid confusion
Diffstat (limited to 'examples/static/src/static_app.erl')
-rw-r--r-- | examples/static/src/static_app.erl | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/examples/static/src/static_app.erl b/examples/static/src/static_app.erl deleted file mode 100644 index a2b9c31..0000000 --- a/examples/static/src/static_app.erl +++ /dev/null @@ -1,28 +0,0 @@ -%% Feel free to use, reuse and abuse the code in this file. - -%% @private --module(static_app). --behaviour(application). - -%% API. --export([start/2]). --export([stop/1]). - -%% API. - -start(_Type, _Args) -> - Dispatch = cowboy_router:compile([ - {'_', [ - {"/[...]", cowboy_static, [ - {directory, {priv_dir, static, []}}, - {mimetypes, {fun mimetypes:path_to_mimes/2, default}} - ]} - ]} - ]), - {ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [ - {env, [{dispatch, Dispatch}]} - ]), - static_sup:start_link(). - -stop(_State) -> - ok. |