Changed API: GetAvailableControllers, GetKnownPublications, GetPublicationsFromConnector to Tranga/*

This commit is contained in:
glax 2023-05-23 13:17:05 +02:00
parent 5674adbd5e
commit 947b521163

View File

@ -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)