fix(api): test ip

This commit is contained in:
Mikhail Trubnikov
2023-12-04 12:02:55 +10:00
parent 249ba4ca66
commit 4c7c5090db
2 changed files with 12 additions and 18 deletions

View File

@@ -45,12 +45,5 @@ namespace PARR.API.Controllers.V1
return Ok(new Response<ApiHealthResponse>(response, true));
}
[HttpGet("/get-ip")]
public IActionResult Test()
{
var ip = HttpContext.Connection.RemoteIpAddress?.MapToIPv4();
return Ok(ip.ToString());
}
}
}