mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Rename the basic_auth example to rest_basic_auth
This commit is contained in:
parent
51ce122858
commit
bb9a2e975e
6 changed files with 8 additions and 8 deletions
|
@ -1,9 +1,6 @@
|
|||
Cowboy Examples
|
||||
===============
|
||||
|
||||
* [basic_auth](./basic_auth):
|
||||
basic HTTP authorization with REST
|
||||
|
||||
* [chunked_hello_world](./chunked_hello_world):
|
||||
demonstrates chunked data transfer with two one-second delays
|
||||
|
||||
|
@ -34,6 +31,9 @@ Cowboy Examples
|
|||
* [markdown_middleware](./markdown_middleware):
|
||||
static file handler with markdown preprocessor
|
||||
|
||||
* [rest_basic_auth](./rest_basic_auth):
|
||||
basic HTTP authorization with REST
|
||||
|
||||
* [rest_hello_world](./rest_hello_world):
|
||||
return the data type that matches the request type (ex: html, text, json)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
%% Feel free to use, reuse and abuse the code in this file.
|
||||
|
||||
{application, basic_auth, [
|
||||
{application, rest_basic_auth, [
|
||||
{description, "Cowboy Basic HTTP Authorization example."},
|
||||
{vsn, "1"},
|
||||
{modules, []},
|
||||
|
@ -10,6 +10,6 @@
|
|||
stdlib,
|
||||
cowboy
|
||||
]},
|
||||
{mod, {basic_auth_app, []}},
|
||||
{mod, {rest_basic_auth_app, []}},
|
||||
{env, []}
|
||||
]}.
|
|
@ -1,7 +1,7 @@
|
|||
%% Feel free to use, reuse and abuse the code in this file.
|
||||
|
||||
%% @private
|
||||
-module(basic_auth_app).
|
||||
-module(rest_basic_auth_app).
|
||||
-behaviour(application).
|
||||
|
||||
%% API.
|
||||
|
@ -19,7 +19,7 @@ start(_Type, _Args) ->
|
|||
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
|
||||
{env, [{dispatch, Dispatch}]}
|
||||
]),
|
||||
basic_auth_sup:start_link().
|
||||
rest_basic_auth_sup:start_link().
|
||||
|
||||
stop(_State) ->
|
||||
ok.
|
|
@ -1,7 +1,7 @@
|
|||
%% Feel free to use, reuse and abuse the code in this file.
|
||||
|
||||
%% @private
|
||||
-module(basic_auth_sup).
|
||||
-module(rest_basic_auth_sup).
|
||||
-behaviour(supervisor).
|
||||
|
||||
%% API.
|
Loading…
Add table
Add a link
Reference in a new issue