re-refacto BlogPost serialization

This commit is contained in:
Paul Schneider 2026-08-05 21:11:22 +01:00
commit e17b24afe7
2 changed files with 2 additions and 4 deletions

View file

@ -3,7 +3,5 @@ namespace Yavsc.Interfaces
public interface ITaggable<K> : IIdentified<K>
{
string [] GetTags();
K Id { get; }
}
}

View file

@ -22,9 +22,9 @@ namespace Yavsc.Blogs.Controllers
// GET: api/BlogApi
[HttpGet]
public async Task<IEnumerable<BlogPost>> GetBlogspot(int start = 0, int take = 25)
public async Task<IEnumerable<IBlogPost>> GetBlogspot(int start = 0, int take = 25)
{
return (await blogSpotService.Index(User, null, start, take)).Cast<BlogPost>();
return await blogSpotService.Index(User, null, start, take);
}
// GET: api/BlogApi/5