фывфывфыв

This commit is contained in:
Hukuta committed 2026-05-22 01:21:04 +09:00
1 parent 47fb655a96
commit e8529ee92a
46 files changed
+2514 -919

No files matched your search

+5 -5
View File
@@ -12,15 +12,15 @@ namespace CartriX.Api.Controllers
{
_networkService = networkService;
}
[HttpGet(nameof(GetHostname))]
public async Task<IActionResult> GetHostname([FromQuery] string ipAddress)
{
return Ok(await _networkService.GetHostnameAsync(ipAddress));
}
[HttpGet(nameof(GetIpAddress))]
public async Task<IActionResult> GetIpAddress([FromQuery] string hostname)
{
return Ok(await _networkService.GetIpAddressAsync(hostname));
}
[HttpGet(nameof(Ping))]
public async Task<IActionResult> Ping([FromQuery] string IpAddressOrHostname)
{
return Ok(await _networkService.Ping(IpAddressOrHostname));
}
}
}