Protect API behind a bearer token

This commit is contained in:
Claudio Ortolina
2024-12-22 18:32:04 +00:00
parent c18379801f
commit f1af38606a
6 changed files with 43 additions and 5 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ config :music_library,
ecto_repos: [MusicLibrary.Repo],
generators: [timestamp_type: :utc_datetime, binary_id: true]
config :music_library, MusicLibraryWeb, login_password: "change me"
config :music_library, MusicLibraryWeb, login_password: "change me", api_token: "change me"
# Configures the endpoint
config :music_library, MusicLibraryWeb.Endpoint,