The routes were in the wrong format. Correct them.
parent
59f02f4edf
commit
dbf5371122
|
@ -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, [
|
||||||
|
|
Loading…
Reference in New Issue