The routes were in the wrong format. Correct them.

main
absc 2024-08-02 23:12:33 +02:00
parent 59f02f4edf
commit dbf5371122
1 changed files with 4 additions and 2 deletions

View File

@ -30,8 +30,10 @@ start(_Type, StartArgs) ->
{ok, Port} = application:get_env(port), {ok, Port} = application:get_env(port),
Dispatch = cowboy_router:compile([ Dispatch = cowboy_router:compile([
{'_', [{"/user", dudeswave_user_handler, #{bucket => ?USERSBUCKET}}]}, {'_', [
{'_', [{"/", dudeswave_handler, #{bucket => ?APPBUCKET}}]} {"/user", dudeswave_user_handler, #{bucket => ?USERSBUCKET}},
{"/", dudeswave_handler, #{bucket => ?APPBUCKET}}
]}
]), ]),
{ok, ListenerPid} = cowboy:start_tls(dudeswave_listener, [ {ok, ListenerPid} = cowboy:start_tls(dudeswave_listener, [