some fix
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-10-20 22:28:12 +10:00
3 changed files with 36 additions and 12 deletions

View File

@@ -10,7 +10,8 @@ namespace NeDvachAPI.Controllers
[HttpGet(Name = "GetPosts")]
public string Get()
{
Post[] posts = DBchat.DbList();
//Post[] posts = DBchat.DbList();
List<Post> posts = DBchat.DbList();
string postsJson = JsonSerializer.Serialize(posts);
Console.WriteLine("Запрошен список постов.");
return postsJson ;