post list
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Simple_Not 2022-10-20 11:41:05 +10:00
parent 1b60bf776f
commit 3d5c349288

View File

@ -10,7 +10,8 @@ namespace NeDvachAPI.Controllers
[HttpGet(Name = "GetPosts")] [HttpGet(Name = "GetPosts")]
public string Get() public string Get()
{ {
Post[] posts = DBchat.DbList(); //Post[] posts = DBchat.DbList();
List<Post> posts = DBchat.DbList();
string postsJson = JsonSerializer.Serialize(posts); string postsJson = JsonSerializer.Serialize(posts);
return postsJson ; return postsJson ;