This commit is contained in:
2025-08-28 16:54:27 +02:00
parent c7a94893a2
commit 8681056139
512 changed files with 56 additions and 38079 deletions

View File

@@ -1,48 +0,0 @@
using back.ServicesExtensions;
using MCVIngenieros.Healthchecks;
namespace back;
public class Program
{
public static void Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
builder.Services.UseExtensions();
builder.Services.AddControllers();
builder.Services.AddHealthChecksSupport().DiscoverHealthChecks();
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
builder.Services.AddSwaggerGen();
builder.Services.AddCors(options =>
{
options.AddPolicy("AllowAll",
builder => builder.AllowAnyOrigin()
.AllowAnyMethod()
.AllowAnyHeader());
});
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
app.UseAuthorization();
app.UseCors("AllowAll");
app.MapControllers();
app.Run();
}
}