diff options
Diffstat (limited to 'examples/static_world/src/static_world_app.erl')
-rw-r--r-- | examples/static_world/src/static_world_app.erl | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/examples/static_world/src/static_world_app.erl b/examples/static_world/src/static_world_app.erl deleted file mode 100644 index 4d194c7..0000000 --- a/examples/static_world/src/static_world_app.erl +++ /dev/null @@ -1,27 +0,0 @@ -%% Feel free to use, reuse and abuse the code in this file. - -%% @private --module(static_world_app). --behaviour(application). - -%% API. --export([start/2]). --export([stop/1]). - -%% API. - -start(_Type, _Args) -> - Dispatch = cowboy_router:compile([ - {'_', [ - {"/", cowboy_static, {priv_file, static_world, "index.html"}}, - {"/[...]", cowboy_static, {priv_dir, static_world, "", - [{mimetypes, cow_mimetypes, all}]}} - ]} - ]), - {ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [ - {env, [{dispatch, Dispatch}]} - ]), - static_world_sup:start_link(). - -stop(_State) -> - ok. |