mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 04:30:25 +00:00
Add a more involved REST example
A pastebin type application that can optionally highlight the output as both text and HTML.
This commit is contained in:
parent
ae401f7460
commit
d7b83db92e
11 changed files with 303 additions and 0 deletions
14
examples/rest_pastebin/src/rest_pastebin.erl
Normal file
14
examples/rest_pastebin/src/rest_pastebin.erl
Normal file
|
@ -0,0 +1,14 @@
|
|||
%% Feel free to use, reuse and abuse the code in this file.
|
||||
|
||||
-module(rest_pastebin).
|
||||
|
||||
%% API.
|
||||
-export([start/0]).
|
||||
|
||||
%% API.
|
||||
|
||||
start() ->
|
||||
ok = application:start(crypto),
|
||||
ok = application:start(ranch),
|
||||
ok = application:start(cowboy),
|
||||
ok = application:start(rest_pastebin).
|
Loading…
Add table
Add a link
Reference in a new issue