ajout projet backend vide
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

This commit was merged in pull request #8.
This commit is contained in:
2024-08-25 00:24:54 +02:00
parent b77185fdc8
commit 3cb1973fd1
11 changed files with 194 additions and 30 deletions

View File

@@ -0,0 +1,26 @@
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();