This commit is contained in:
Tommy Parnell
2021-12-28 17:25:32 -05:00
parent 0ee3ee8bff
commit 585438abc6
3 changed files with 12 additions and 5 deletions

View File

@@ -1,6 +1,10 @@
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/", () => "Hello World!");
var port = Environment.GetEnvironmentVariable("PORT") ?? "3100";
app.Run("http://0.0.0.0:" + port);
app.MapGet("/", () =>
{
return "Hello World";
});
app.Run();