From a966bd788d3b69ce6e646fe8a23787181f1fd2a5 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 23 May 2023 14:45:51 +0200 Subject: [PATCH] Return array for GetAvailableControllers --- Tranga-API/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga-API/Program.cs b/Tranga-API/Program.cs index d74f39f..b0fb94b 100644 --- a/Tranga-API/Program.cs +++ b/Tranga-API/Program.cs @@ -47,7 +47,7 @@ app.UseSwaggerUI(); app.UseCors(corsHeader); -app.MapGet("/Tranga/GetAvailableControllers", () => taskManager.GetAvailableConnectors()); +app.MapGet("/Tranga/GetAvailableControllers", () => taskManager.GetAvailableConnectors().Keys.ToArray()); app.MapGet("/Tranga/GetKnownPublications", () => taskManager.GetAllPublications());