mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 12:40:25 +00:00
Add an example with custom middleware
This commit is contained in:
parent
26935cbfb0
commit
09f1a8d55b
12 changed files with 157 additions and 0 deletions
14
examples/markdown_middleware/src/markdown_middleware.erl
Normal file
14
examples/markdown_middleware/src/markdown_middleware.erl
Normal file
|
@ -0,0 +1,14 @@
|
|||
%% Feel free to use, reuse and abuse the code in this file.
|
||||
|
||||
-module(markdown_middleware).
|
||||
|
||||
%% API.
|
||||
-export([start/0]).
|
||||
|
||||
%% API.
|
||||
|
||||
start() ->
|
||||
ok = application:start(crypto),
|
||||
ok = application:start(ranch),
|
||||
ok = application:start(cowboy),
|
||||
ok = application:start(markdown_middleware).
|
Loading…
Add table
Add a link
Reference in a new issue