mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 02:11:10 +00:00
Adds media library advanced options
This commit is contained in:
1 parent
1c28355197
commit
f89ba4960a
60 files changed
+1877
-51
No files matched your search
+11
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user