Compare commits
No commits in common. "81308c2f79d06abca9fe686b0f6b8397a74c6242" and "8f33700019d4200983efed1fc2258952a9b2d451" have entirely different histories.
81308c2f79
...
8f33700019
1
.gitignore
vendored
1
.gitignore
vendored
@ -416,4 +416,3 @@ FodyWeavers.xsd
|
||||
/Services/obj/Debug/net8.0/Services.assets.cache
|
||||
/Services/obj/Debug/net8.0/Services.csproj.FileListAbsolute.txt
|
||||
/Transversal/obj/Debug/net8.0/Transversal.csproj.FileListAbsolute.txt
|
||||
/phronCare.Test/bin/Debug/net8.0/nunit_random_seed.tmp
|
||||
|
||||
28
.vscode/launch.json
vendored
28
.vscode/launch.json
vendored
@ -1,28 +0,0 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Launch phronCare API",
|
||||
"type": "coreclr",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "build",
|
||||
"program": "${workspaceFolder}/phronCare.API/bin/Debug/net8.0/phronCare.API.dll",
|
||||
"args": [],
|
||||
"cwd": "${workspaceFolder}/phronCare.API",
|
||||
"stopAtEntry": false,
|
||||
"serverReadyAction": {
|
||||
"action": "openExternally",
|
||||
"pattern": "\\bNow listening on:\\s+(https?://\\S+)",
|
||||
"uriFormat": "%s/swagger/index.html"
|
||||
},
|
||||
"env": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development",
|
||||
"ASPNETCORE_CONFIGURATION": "appsettings.json"
|
||||
},
|
||||
"sourceFileMap": {
|
||||
"/Views": "${workspaceFolder}/Views"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
16
.vscode/tasks.json
vendored
16
.vscode/tasks.json
vendored
@ -1,16 +0,0 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "build",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"build",
|
||||
"${workspaceFolder}/phronCare/phronCare.API/phronCare.API.csproj"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -16,9 +16,6 @@ using Services.Interfaces;
|
||||
using System.Text;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
// Asegúrate de que el archivo appsettings.json se cargue correctamente
|
||||
builder.Configuration.SetBasePath(Directory.GetCurrentDirectory())
|
||||
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true);
|
||||
|
||||
#region DbContext Identity Configuration
|
||||
var configuration = builder.Configuration;
|
||||
@ -72,10 +69,6 @@ builder.Services.AddAuthentication(options =>
|
||||
|
||||
#region Email Configuration
|
||||
var emailConfig = configuration.GetSection("EmailConfiguration").Get<EmailConfiguration>();
|
||||
if (emailConfig == null)
|
||||
{
|
||||
throw new InvalidOperationException("La configuración del correo electrónico no se encontró o es inválida.");
|
||||
}
|
||||
builder.Services.AddSingleton(emailConfig);
|
||||
builder.Services.AddScoped<IEmailService, EmailService>();
|
||||
#endregion
|
||||
|
||||
8
phronCare.API/appsettings.Development.json
Normal file
8
phronCare.API/appsettings.Development.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -43,10 +43,5 @@
|
||||
<ProjectReference Include="..\Domain\Domain.csproj" />
|
||||
<ProjectReference Include="..\Services\Services.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="appsettings.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
1
phronCare.Test/bin/Debug/net8.0/nunit_random_seed.tmp
Normal file
1
phronCare.Test/bin/Debug/net8.0/nunit_random_seed.tmp
Normal file
@ -0,0 +1 @@
|
||||
328406426
|
||||
Loading…
x
Reference in New Issue
Block a user