0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 12:40:25 +00:00

Make examples use the new routing

This commit is contained in:
Loïc Hoguin 2013-01-29 14:47:17 +01:00
parent 638638a841
commit ab0699ab29
8 changed files with 23 additions and 23 deletions

View file

@ -11,14 +11,14 @@
%% API.
start(_Type, _Args) ->
Dispatch = [
Dispatch = cowboy_router:compile([
{'_', [
{['...'], cowboy_static, [
{"/[...]", 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}]}
]),