From 7e3cd2142a74a19dab9b4a696b4fd1e195874485 Mon Sep 17 00:00:00 2001 From: jedrzejps Date: Thu, 27 Jan 2022 18:19:47 +0100 Subject: [PATCH] DI --- BitSearch/BitSearch.API/Startup.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BitSearch/BitSearch.API/Startup.cs b/BitSearch/BitSearch.API/Startup.cs index dce4a80..aae252f 100644 --- a/BitSearch/BitSearch.API/Startup.cs +++ b/BitSearch/BitSearch.API/Startup.cs @@ -1,3 +1,4 @@ +using BitSearch.API.Services; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; @@ -28,6 +29,7 @@ namespace BitSearch.API { services.AddControllers(); + services.AddScoped(); services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new OpenApiInfo { Title = "BitSearch.API", Version = "v1" });