mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 20:47:46 +02:00
feat(rest-api): add endpoints for episodes and full text search for podcasts and episodes
closes #296
This commit is contained in:
parent
2b516fee14
commit
85505d4b31
12 changed files with 453 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue