Give a better name to the registration handler.

main
absc 2024-08-02 23:43:03 +02:00
parent 631f729ed9
commit 2470af1296
3 changed files with 3 additions and 3 deletions

View File

@ -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}

View File

@ -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}}
]}
]),

View File

@ -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.
""".