mirror of
https://github.com/hubHarmony/Csharp-API-Template.git
synced 2024-11-17 21:40:31 +00:00
[V1-Release] Added TODOs for appsettings.json configuration
This commit is contained in:
parent
173e938c49
commit
7bd683785a
@ -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<Database>(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;
|
||||
|
Loading…
Reference in New Issue
Block a user