0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +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,11 +11,11 @@
%% API.
start(_Type, _Args) ->
Dispatch = [
Dispatch = cowboy_router:compile([
{'_', [
{[], toppage_handler, []}
{"/", toppage_handler, []}
]}
],
]),
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
{compress, true},
{env, [{dispatch, Dispatch}]}