1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-12 00:28:11 -05:00

ip endpoint

This commit is contained in:
Kyle Spearrin 2018-05-21 21:18:19 -04:00
parent 9f919920bc
commit 3aaaac3c5f

View File

@ -18,5 +18,15 @@ namespace Bit.Api.Controllers
{
return new VersionResponseModel();
}
[HttpGet("~/ip")]
public JsonResult Ip()
{
return new JsonResult(new
{
Ip = HttpContext.Connection?.RemoteIpAddress?.ToString(),
Headers = HttpContext.Request?.Headers,
});
}
}
}