This commit is contained in:
@@ -10,7 +10,7 @@ namespace NeDvachAPI.Controllers
|
|||||||
[HttpGet(Name = "GetPosts")]
|
[HttpGet(Name = "GetPosts")]
|
||||||
public string Get()
|
public string Get()
|
||||||
{
|
{
|
||||||
var remoteIpAddress = request.HttpContext.Connection.RemoteIpAddress;
|
var remoteIpAddress = httpContext.GetFeature<IHttpConnectionFeature>()?.RemoteIpAddress;
|
||||||
|
|
||||||
//Post[] posts = DBchat.DbList();
|
//Post[] posts = DBchat.DbList();
|
||||||
List<Post> posts = DBchat.DbList();
|
List<Post> posts = DBchat.DbList();
|
||||||
|
|||||||
Reference in New Issue
Block a user