feat(rest-api): add endpoints for episodes and full text search for podcasts and episodes

closes #296
This commit is contained in:
Krzysztof Domańczy 2023-06-21 10:07:31 +00:00 committed by Yassine Doghri
commit 85505d4b31
12 changed files with 453 additions and 8 deletions

View file

@ -86,7 +86,7 @@ class EpisodeController extends BaseController
->select('episodes.*, IFNULL(SUM(ape.hits),0) as downloads')
->join('analytics_podcasts_by_episode ape', 'episodes.id=ape.episode_id', 'left')
->where('episodes.podcast_id', $this->podcast->id)
->where("MATCH (title, description_markdown) AGAINST ('{$query}')")
->where("MATCH (title, description_markdown, slug, location_name) AGAINST ('{$query}')")
->groupBy('episodes.id');
}
} else {