Merge branch 'video/54_Inyeccion_En_API' into dev
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
using CleanArchitecture.Application;
|
||||||
|
using CleanArchitecture.Infrastructure;
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
// Add services to the container.
|
// Add services to the container.
|
||||||
@@ -7,6 +10,11 @@ builder.Services.AddControllers();
|
|||||||
builder.Services.AddEndpointsApiExplorer();
|
builder.Services.AddEndpointsApiExplorer();
|
||||||
builder.Services.AddSwaggerGen();
|
builder.Services.AddSwaggerGen();
|
||||||
|
|
||||||
|
|
||||||
|
builder.Services.AddInfrastructureServices(builder.Configuration);
|
||||||
|
builder.Services.AddApplicationServices();
|
||||||
|
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
// Configure the HTTP request pipeline.
|
// Configure the HTTP request pipeline.
|
||||||
|
|||||||
@@ -1,4 +1,13 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
"ConnectionStrings": {
|
||||||
|
"ConnectionString": "server=localhost;database=CleanArchitecture;user=root;password=securePassword"
|
||||||
|
},
|
||||||
|
"EmailSettings": {
|
||||||
|
"FromAddress": "alejandro@asarmiento.es",
|
||||||
|
"ApiKey": "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",
|
||||||
|
"FromName": "Alejandro Sarmiento"
|
||||||
|
},
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Information",
|
"Default": "Information",
|
||||||
|
|||||||
Reference in New Issue
Block a user