mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-30 10:55:16 -04:00
Updating the search api
This commit is contained in:
@@ -411,6 +411,22 @@ namespace Kyoo.Controllers
|
||||
{
|
||||
return LibraryRepository.GetFromCollection(slug, where, sort, limit);
|
||||
}
|
||||
|
||||
public Task<ICollection<ShowRole>> GetRolesFromPeople(int id,
|
||||
Expression<Func<ShowRole, bool>> where = null,
|
||||
Sort<ShowRole> sort = default,
|
||||
Pagination limit = default)
|
||||
{
|
||||
return PeopleRepository.GetFromPeople(id, where, sort, limit);
|
||||
}
|
||||
|
||||
public Task<ICollection<ShowRole>> GetRolesFromPeople(string slug,
|
||||
Expression<Func<ShowRole, bool>> where = null,
|
||||
Sort<ShowRole> sort = default,
|
||||
Pagination limit = default)
|
||||
{
|
||||
return PeopleRepository.GetFromPeople(slug, where, sort, limit);
|
||||
}
|
||||
|
||||
public Task AddShowLink(int showID, int? libraryID, int? collectionID)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user