Files
work/Strela/Program.cs
T
astankovmi eb6235bd3e
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 17s
upd
2026-05-26 14:02:32 +03:00

36 lines
790 B
C#

namespace Strela
{
public class Program
{
public static void Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers();
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
builder.Services.AddOpenApi();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseAuthorization();
app.MapControllers();
app.MapGet("/", () => "OK");
app.Run();
}
}
}