hello-shop/src/HelloShop.OrderingService/Program.cs

22 lines
337 B
C#
Raw Normal View History

2023-12-08 07:22:20 +00:00
var builder = WebApplication.CreateBuilder(args);
builder.AddServiceDefaults();
// Add services to the container.
builder.Services.AddControllers();
var app = builder.Build();
app.MapDefaultEndpoints();
// Configure the HTTP request pipeline.
app.UseHttpsRedirection();
app.UseAuthorization();
app.MapControllers();
app.Run();