Changed API: GetAvailableControllers, GetKnownPublications, GetPublicationsFromConnector to Tranga/*
This commit is contained in:
parent
5674adbd5e
commit
947b521163
@ -47,9 +47,11 @@ app.UseSwaggerUI();
|
|||||||
|
|
||||||
app.UseCors(corsHeader);
|
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;
|
Connector? connector = taskManager.GetAvailableConnectors().FirstOrDefault(con => con.Key == connectorName).Value;
|
||||||
if (connector is null)
|
if (connector is null)
|
||||||
|
Loading…
Reference in New Issue
Block a user