Add the authentication handler to the routes.

main
absc 2024-08-15 22:11:19 +00:00
parent 1ca3e1f4ef
commit ae07951cd2
1 changed files with 1 additions and 0 deletions

View File

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