mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Более менее сделал страничку с принтером
This commit is contained in:
1 parent
286beabf89
commit
9a486a57b4
9 files changed
+103
-32
No files matched your search
@@ -36,9 +36,8 @@ namespace CartriX.Api.Controllers.Network
|
||||
/// Сделать ПИНГ к указанному хосту или IP Адресу
|
||||
/// </summary>
|
||||
[ProducesResponseType(typeof(bool), StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(typeof(bool), StatusCodes.Status404NotFound)]
|
||||
[HttpGet(nameof(Ping))]
|
||||
public async Task<ActionResult> Ping([FromQuery] string IpAddressOrHostname) => (await NetworkHelper.PingHostAsync(IpAddressOrHostname)) ? StatusCode(200, true) : StatusCode(404, false);
|
||||
public async Task<ActionResult> Ping([FromQuery] string IpAddressOrHostname) => StatusCode(200, await NetworkHelper.PingHostAsync(IpAddressOrHostname));
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user