Some checks failed
Build and Push to Gitea Registry / publish-images (push) Failing after 2m4s
9 lines
306 B
C#
9 lines
306 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"); |