From 7bd683785a35d07c697b64d000f6083814eb47ed Mon Sep 17 00:00:00 2001 From: Charles Le Maux Date: Tue, 8 Oct 2024 13:37:28 +0200 Subject: [PATCH] [V1-Release] Added TODOs for appsettings.json configuration --- Program.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Program.cs b/Program.cs index 2010ec3..253ed82 100644 --- a/Program.cs +++ b/Program.cs @@ -22,6 +22,12 @@ builder.Services.AddCors(options => .AllowAnyHeader(); }); }); + +// TODO : Replace values in "appsettings.json" to make this bloc work. + +// APPSETTINGS CONFIGURATION START + +// Database Configuration builder.Services.AddDbContext(options => options.UseMySql(builder.Configuration.GetConnectionString("DATABASE"), ServerVersion.AutoDetect(builder.Configuration.GetConnectionString("DATABASE")))); @@ -36,6 +42,9 @@ if (string.IsNullOrEmpty(key)) { return; } + +// APPSETTINGS CONFIGURATION END + builder.Services.AddAuthentication(options => { options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;