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" });