Adds media library advanced options

This commit is contained in:
BinaryAlley committed 2025-01-25 12:27:50 +02:00
1 parent 1c28355197
commit f89ba4960a
60 files changed
+1877 -51

No files matched your search

@@ -73,6 +73,17 @@ public class LibraryManagementController : Controller
return Json(new { success = true, data = response });
}
/// <summary>
/// Gets the list of enabled media libraries.
/// </summary>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
[HttpGet("api-get-enabled-libraries")]
public async Task<IActionResult> GetEnabledLibraries(CancellationToken cancellationToken = default)
{
LibraryModel[] response = await _apiHttpClient.GetAsync<LibraryModel[]>($"libraries/enabled/", cancellationToken).ConfigureAwait(false);
return Json(new { success = true, data = response });
}
/// <summary>
/// Adds a new media library, or updates an existing one.
/// </summary>