mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Add items search support
This commit is contained in:
parent
1f33d52429
commit
8ca120aa6f
@ -120,6 +120,25 @@ namespace Kyoo.Core.Api
|
||||
return _libraryManager.Search<Show>(query);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Search items
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Search for items
|
||||
/// </remarks>
|
||||
/// <param name="query">The query to search for.</param>
|
||||
/// <returns>A list of items found for the specified query.</returns>
|
||||
[HttpGet("items")]
|
||||
[HttpGet("item", Order = AlternativeRoute)]
|
||||
[Permission(nameof(Show), Kind.Read)]
|
||||
[ApiDefinition("Items")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
public Task<ICollection<LibraryItem>> SearchItems(string query)
|
||||
{
|
||||
return _libraryManager.Search<LibraryItem>(query);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Search episodes
|
||||
/// </summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user