From 947b521163ed6a4de2f3d9ada472790113fda988 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 23 May 2023 13:17:05 +0200 Subject: [PATCH] Changed API: GetAvailableControllers, GetKnownPublications, GetPublicationsFromConnector to Tranga/* --- Tranga-API/Program.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tranga-API/Program.cs b/Tranga-API/Program.cs index 3c4c4c6..d74f39f 100644 --- a/Tranga-API/Program.cs +++ b/Tranga-API/Program.cs @@ -47,9 +47,11 @@ app.UseSwaggerUI(); app.UseCors(corsHeader); -app.MapGet("/GetKnownPublications", () => taskManager.GetAllPublications()); +app.MapGet("/Tranga/GetAvailableControllers", () => taskManager.GetAvailableConnectors()); -app.MapGet("/GetPublicationsFromConnector", (string connectorName, string title) => +app.MapGet("/Tranga/GetKnownPublications", () => taskManager.GetAllPublications()); + +app.MapGet("/Tranga/GetPublicationsFromConnector", (string connectorName, string title) => { Connector? connector = taskManager.GetAvailableConnectors().FirstOrDefault(con => con.Key == connectorName).Value; if (connector is null)