diff --git a/Tranga-API/Program.cs b/Tranga-API/Program.cs index 84c0698..78f2773 100644 --- a/Tranga-API/Program.cs +++ b/Tranga-API/Program.cs @@ -25,8 +25,14 @@ else TaskManager taskManager = new (settings, logger); var builder = WebApplication.CreateBuilder(args); +builder.Services.AddEndpointsApiExplorer(); +builder.Services.AddSwaggerGen(); builder.Services.AddControllers().AddNewtonsoftJson(); var app = builder.Build(); +app.UseSwagger(); +app.UseSwaggerUI(); +app.UseSwagger(); +app.UseSwaggerUI(); app.MapGet("/GetAvailableControllers", () => taskManager.GetAvailableConnectors());