Updating the search api

This commit is contained in:
Zoe Roux
2020-08-04 20:18:33 +02:00
parent 6a0fb2dd38
commit 2df3562045
18 changed files with 351 additions and 103 deletions
+3 -2
View File
@@ -77,8 +77,9 @@ namespace Kyoo.Controllers
{
ContractResolver = new JsonPropertySelector(null, new Dictionary<Type, HashSet<string>>()
{
{typeof(Show), new HashSet<string> {"genres", "studio", "people", "seasons"}},
{typeof(Episode), new HashSet<string> {"tracks"}}
{typeof(Show), new HashSet<string> {"genres", "studio"}},
{typeof(Episode), new HashSet<string> {"tracks"}},
{typeof(PeopleLink), new HashSet<string> {"show"}}
})
},
context.HttpContext.RequestServices.GetRequiredService<ArrayPool<char>>(),