diff --git a/Controllers/GetPosts.cs b/Controllers/GetPosts.cs index be53cfd..cef9270 100644 --- a/Controllers/GetPosts.cs +++ b/Controllers/GetPosts.cs @@ -10,10 +10,12 @@ namespace NeDvachAPI.Controllers [HttpGet(Name = "GetPosts")] public string Get() { + var remoteIpAddress = request.HttpContext.Connection.RemoteIpAddress; + //Post[] posts = DBchat.DbList(); List posts = DBchat.DbList(); string postsJson = JsonSerializer.Serialize(posts); - Console.WriteLine("Запрошен список постов."); + Console.WriteLine($"Запрошен список постов для {remoteIpAddress}"); return postsJson ;