Fixed broken audio cdn url

This commit is contained in:
Fergal Moran
2017-10-30 22:24:55 +00:00
parent 6c8ba16142
commit 20d887537f
4 changed files with 7 additions and 6 deletions

View File

@@ -57,10 +57,12 @@ namespace PodNoms.Api.Controllers
}
}
[HttpGet("all/{podcastSlug}")]
public async Task<IEnumerable<PodcastEntryViewModel>> GetAllForSlug(string podcastSlug)
public async Task<IActionResult> GetAllForSlug(string podcastSlug)
{
var entries = await _repository.GetAllAsync(podcastSlug);
return _mapper.Map<List<PodcastEntry>, List<PodcastEntryViewModel>>(entries.ToList());
var results = _mapper.Map<List<PodcastEntry>, List<PodcastEntryViewModel>>(entries.ToList());
return Ok(results);
}
[HttpPost]