Some checks failed
Build and Push to Gitea Registry / publish-images (push) Failing after 17s
10 lines
307 B
C#
10 lines
307 B
C#
var builder = WebApplication.CreateBuilder(args);
|
|
builder.Services.AddCors();
|
|
var app = builder.Build();
|
|
|
|
app.UseCors(policy => policy.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader());
|
|
|
|
app.MapGet("/api/saludo", () => new { mensaje = "¡Hola desde el Backend en C#!" });
|
|
|
|
app.Run("http://0.0.0.0:8080");
|