hello-shop/src/HelloShop.OrderingService/Program.cs
2024-08-29 23:07:14 +08:00

23 lines
520 B
C#

// Copyright (c) HelloShop Corporation. All rights reserved.
// See the license file in the project root for more information.
using HelloShop.OrderingService.Extensions;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.AddServiceDefaults();
builder.AddApplicationServices();
builder.Services.AddControllers();
var app = builder.Build();
// Configure the HTTP request pipeline.
app.MapDefaultEndpoints();
app.MapApplicationEndpoints();
app.MapControllers();
app.Run();