mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-22 17:28:43 +00:00
Added right side overlay
This commit is contained in:
@@ -64,6 +64,15 @@ namespace PodNoms.Api.Controllers {
|
||||
}
|
||||
}
|
||||
|
||||
[HttpGet("users")]
|
||||
public async Task<IActionResult> GetAllForUser() {
|
||||
var entries = await _repository.GetAllForUserAsync(_applicationUser.Id);
|
||||
var results = _mapper.Map<List<PodcastEntry>, List<PodcastEntryViewModel>>(
|
||||
entries.OrderByDescending(e => e.Id).ToList()
|
||||
);
|
||||
return Ok(results);
|
||||
}
|
||||
|
||||
[HttpGet("all/{podcastSlug}")]
|
||||
public async Task<IActionResult> GetAllForSlug(string podcastSlug) {
|
||||
var entries = await _repository.GetAllAsync(podcastSlug);
|
||||
|
||||
Reference in New Issue
Block a user