Skip to content

Commit aaffc9c

Browse files
committed
✨ Enhance Program.cs to integrate application, infrastructure, and web API services with dependency injection
1 parent 87925fe commit aaffc9c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/YazilimAcademy.WebApi/Program.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
using YazilimAcademy.Application;
2+
using YazilimAcademy.Infrastructure;
3+
using YazilimAcademy.WebApi;
4+
15
var builder = WebApplication.CreateBuilder(args);
26

37
// Add services to the container.
@@ -6,6 +10,10 @@
610
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
711
builder.Services.AddOpenApi();
812

13+
builder.Services.AddApplication();
14+
builder.Services.AddInfrastructure(builder.Configuration);
15+
builder.Services.AddWebApi();
16+
917
var app = builder.Build();
1018

1119
// Configure the HTTP request pipeline.

0 commit comments

Comments
 (0)