Commit Inicial
Some checks failed
Build and Push to Gitea Registry / publish-images (push) Failing after 2m4s
Some checks failed
Build and Push to Gitea Registry / publish-images (push) Failing after 2m4s
This commit is contained in:
9
Backend/Program.cs
Normal file
9
Backend/Program.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
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");
|
||||
Reference in New Issue
Block a user