string and json
This commit is contained in:
parent
ea69b355b5
commit
9afb81cee2
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user