Give a better name to the registration handler.
parent
631f729ed9
commit
2470af1296
|
@ -5,7 +5,7 @@ ERLC?= erlc -server
|
|||
|
||||
OBJS= dudeswave.beam dudeswave_app.beam
|
||||
OBJS+= dudeswave_supervisor.beam dudeswave_handler.beam
|
||||
OBJS+= dudeswave_user_handler.beam
|
||||
OBJS+= dudeswave_newuser_handler.beam
|
||||
|
||||
all: ${OBJS}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ start(_Type, StartArgs) ->
|
|||
|
||||
Dispatch = cowboy_router:compile([
|
||||
{'_', [
|
||||
{"/user/new", dudeswave_user_handler, #{bucket => ?USERSBUCKET}},
|
||||
{"/user/new", dudeswave_newuser_handler, #{bucket => ?USERSBUCKET}},
|
||||
{"/", dudeswave_handler, #{bucket => ?APPBUCKET}}
|
||||
]}
|
||||
]),
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
%
|
||||
-module(dudeswave_user_handler).
|
||||
-module(dudeswave_newuser_handler).
|
||||
-moduledoc """
|
||||
Register a new user.
|
||||
""".
|
Loading…
Reference in New Issue