Add genre search endpoint

This commit is contained in:
2022-04-13 23:19:16 +03:00
parent 138e0ffa2f
commit 880f0db605
2 changed files with 30 additions and 4 deletions

View File

@@ -0,0 +1,10 @@
from app.models import Genre
from app.services.common import MeiliSearchService
class GenreMeiliSearchService(MeiliSearchService):
MODEL_CLASS = Genre
PREFETCH_RELATED = ["source"]
MS_INDEX_NAME = "genres"
MS_INDEX_LANG_KEY = "langs"