Initialisierung der EnvelopeGeneratorAPI und der Angular-Webschnittstelle

This commit is contained in:
Developer 02
2024-06-12 01:50:11 +02:00
parent 9b2c5d9ca5
commit 2dc860b923
36 changed files with 14370 additions and 3 deletions

View File

@@ -0,0 +1,29 @@
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseAuthorization();
app.MapControllers();
app.MapFallbackToFile("index.html");
app.Run();