fix(api): StatsController uses IStatsService instead of direct AppDbContext
- Add IStatsService in Application layer - Add StatsService in Infrastructure layer - StatsController now injects IStatsService (Clean Architecture compliant) - StatsResponse DTO added to Application/DTOs
This commit is contained in:
1 parent
c6450ad50d
commit
e17dce1b4f
5 files changed
+55
-15
No files matched your search
@@ -60,6 +60,7 @@ public static class DependencyInjection
|
||||
services.AddScoped<IAgentService, AgentService>();
|
||||
services.AddScoped<IUserService, UserService>();
|
||||
services.AddScoped<ICameraService, CameraService>();
|
||||
services.AddScoped<IStatsService, StatsService>();
|
||||
|
||||
return services;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user