mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 04:20:55 +00:00
фывфывфыв
This commit is contained in:
1 parent
47fb655a96
commit
e8529ee92a
46 files changed
+2514
-919
No files matched your search
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user