This commit is contained in:
jedrzejps 2022-01-27 18:19:47 +01:00
parent b111ce2c2c
commit 7e3cd2142a

View File

@ -1,3 +1,4 @@
using BitSearch.API.Services;
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.AspNetCore.HttpsPolicy;
@ -28,6 +29,7 @@ namespace BitSearch.API
{ {
services.AddControllers(); services.AddControllers();
services.AddScoped<IAnaliseService, RealAnalise>();
services.AddSwaggerGen(c => services.AddSwaggerGen(c =>
{ {
c.SwaggerDoc("v1", new OpenApiInfo { Title = "BitSearch.API", Version = "v1" }); c.SwaggerDoc("v1", new OpenApiInfo { Title = "BitSearch.API", Version = "v1" });