添加项目文件。

This commit is contained in:
ShaoHua
2026-07-15 09:37:07 +08:00
parent ce4acc6bda
commit 45b5f4e38a
8 changed files with 150 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
namespace Hua.WebTools.Controllers
{
public class ApiControllerBase
{
}
}
+15
View File
@@ -0,0 +1,15 @@
using Microsoft.AspNetCore.Mvc;
namespace Hua.WebTools.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class NetWorkController:ControllerBase
{
[HttpGet("[action]")]
public IActionResult GetIp()
{
return Ok(HttpContext.Connection.RemoteIpAddress.ToString());
}
}
}