From 3d5c349288d7e54e45b6690ad5221250775120ab Mon Sep 17 00:00:00 2001 From: Simple_Not <44047940+moonbaseDelta@users.noreply.github.com> Date: Thu, 20 Oct 2022 11:41:05 +1000 Subject: [PATCH] post list --- Controllers/GetPosts.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Controllers/GetPosts.cs b/Controllers/GetPosts.cs index bd5900c..5bc2400 100644 --- a/Controllers/GetPosts.cs +++ b/Controllers/GetPosts.cs @@ -10,7 +10,8 @@ namespace NeDvachAPI.Controllers [HttpGet(Name = "GetPosts")] public string Get() { - Post[] posts = DBchat.DbList(); + //Post[] posts = DBchat.DbList(); + List posts = DBchat.DbList(); string postsJson = JsonSerializer.Serialize(posts); return postsJson ;