2
0

string and json

This commit is contained in:
glax 2023-05-21 21:24:18 +02:00
parent ea69b355b5
commit 9afb81cee2

View File

@ -99,7 +99,7 @@ app.MapPost("/Queue/Dequeue", (string taskType, string? connectorName, string? p
app.MapGet("/Settings/Get", () => new Settings(taskManager.settings)); app.MapGet("/Settings/Get", () => new Settings(taskManager.settings));
app.MapPost("/Setting/Update", (string? downloadLocation, string? komgaUrl, string? komgaAuth) => app.MapPost("/Settings/Update", (string? downloadLocation, string? komgaUrl, string? komgaAuth) =>
{ {
if(downloadLocation is not null) if(downloadLocation is not null)
taskManager.settings.downloadLocation = downloadLocation; taskManager.settings.downloadLocation = downloadLocation;
@ -111,8 +111,8 @@ app.Run();
class Settings class Settings
{ {
public string downloadLocation; public string downloadLocation { get; }
public Komga? komga; public Komga? komga { get; }
public Settings(TaskManager.SettingsData settings) public Settings(TaskManager.SettingsData settings)
{ {