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:
parent
638638a841
commit
ab0699ab29
8 changed files with 23 additions and 23 deletions
|
@ -11,11 +11,11 @@
|
|||
%% API.
|
||||
|
||||
start(_Type, _Args) ->
|
||||
Dispatch = [
|
||||
Dispatch = cowboy_router:compile([
|
||||
{'_', [
|
||||
{'_', toppage_handler, []}
|
||||
]}
|
||||
],
|
||||
]),
|
||||
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
|
||||
{env, [{dispatch, Dispatch}]}
|
||||
]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue