Files
LittleTown/src/LittleTown.Api/Program.cs
mcmuzzle 3cb1973fd1
All checks were successful
Main Build Process / Build & Test (pull_request) Successful in 1m39s
check main state / build (8.0.x) (push) Successful in 2m10s
Main Build Process / Build & Test (push) Successful in 1m28s
ajout projet backend vide
2024-08-29 22:20:45 +02:00

27 lines
552 B
C#

var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
// 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.MapGet("/helloWorld", () =>
{
return "Hello World";
})
.WithName("HelloWorld")
.WithOpenApi();
app.Run();