[V1-Release] Added TODOs for appsettings.json configuration

This commit is contained in:
Charles Le Maux 2024-10-08 13:37:28 +02:00
parent 173e938c49
commit 7bd683785a

View File

@ -22,6 +22,12 @@ builder.Services.AddCors(options =>
.AllowAnyHeader(); .AllowAnyHeader();
}); });
}); });
// TODO : Replace values in "appsettings.json" to make this bloc work.
// APPSETTINGS CONFIGURATION START
// Database Configuration
builder.Services.AddDbContext<Database>(options => builder.Services.AddDbContext<Database>(options =>
options.UseMySql(builder.Configuration.GetConnectionString("DATABASE"), options.UseMySql(builder.Configuration.GetConnectionString("DATABASE"),
ServerVersion.AutoDetect(builder.Configuration.GetConnectionString("DATABASE")))); ServerVersion.AutoDetect(builder.Configuration.GetConnectionString("DATABASE"))));
@ -36,6 +42,9 @@ if (string.IsNullOrEmpty(key))
{ {
return; return;
} }
// APPSETTINGS CONFIGURATION END
builder.Services.AddAuthentication(options => builder.Services.AddAuthentication(options =>
{ {
options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;