Reworking the search API

This commit is contained in:
Zoe Roux
2020-04-04 15:30:53 +02:00
parent 2fe5d376d9
commit 8df8cd4b20
8 changed files with 28 additions and 18 deletions
+2 -2
View File
@@ -1,5 +1,4 @@
using Kyoo.Models;
using Kyoo.Models.Watch;
using System.Collections.Generic;
namespace Kyoo.Controllers
@@ -25,7 +24,8 @@ namespace Kyoo.Controllers
//Public read
IEnumerable<Show> GetShows();
IEnumerable<Show> GetShows(string searchQuery);
IEnumerable<Show> SearchShows(string searchQuery);
IEnumerable<Collection> SearchCollections(string searchQuery);
Library GetLibrary(string librarySlug);
IEnumerable<Library> GetLibraries();
Show GetShowBySlug(string slug);