Add the authentication handler to the routes.
parent
1ca3e1f4ef
commit
ae07951cd2
|
@ -38,6 +38,7 @@ start(_Type, StartArgs) ->
|
||||||
|
|
||||||
Dispatch = cowboy_router:compile([
|
Dispatch = cowboy_router:compile([
|
||||||
{'_', [
|
{'_', [
|
||||||
|
{"/api/v1/auth", dudeswave_auth_handler, #{}},
|
||||||
{"/api/v1/user", dudeswave_user_handler, #{}},
|
{"/api/v1/user", dudeswave_user_handler, #{}},
|
||||||
{"/", dudeswave_handler, #{}}
|
{"/", dudeswave_handler, #{}}
|
||||||
]}
|
]}
|
||||||
|
|
Loading…
Reference in New Issue