API: List Settings
This commit is contained in:
parent
755167c39a
commit
e9db7cfacc
@ -135,7 +135,8 @@ app.MapGet("/TaskEnqueue", (TrangaTask.Task task, string? connectorName, string?
|
|||||||
});
|
});
|
||||||
|
|
||||||
app.MapGet("/TaskDequeue", (TrangaTask.Task task, string? connectorName, string? publicationInternalId) =>
|
app.MapGet("/TaskDequeue", (TrangaTask.Task task, string? connectorName, string? publicationInternalId) =>
|
||||||
{TrangaTask[] allTasks = taskManager.GetAllTasks();
|
{
|
||||||
|
TrangaTask[] allTasks = taskManager.GetAllTasks();
|
||||||
TrangaTask? taskToDequeue = allTasks.FirstOrDefault(tTask =>
|
TrangaTask? taskToDequeue = allTasks.FirstOrDefault(tTask =>
|
||||||
tTask.task == task && tTask.connectorName == connectorName &&
|
tTask.task == task && tTask.connectorName == connectorName &&
|
||||||
tTask.publication?.internalId == publicationInternalId);
|
tTask.publication?.internalId == publicationInternalId);
|
||||||
@ -145,4 +146,6 @@ app.MapGet("/TaskDequeue", (TrangaTask.Task task, string? connectorName, string?
|
|||||||
return JsonSerializer.Serialize("Success");
|
return JsonSerializer.Serialize("Success");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.MapGet("/Settings", () => JsonSerializer.Serialize(taskManager.settings));
|
||||||
|
|
||||||
app.Run();
|
app.Run();
|
Loading…
Reference in New Issue
Block a user