Новый адрес API и обновил библиотеки.
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 12s

This commit is contained in:
2026-07-15 18:07:49 +03:00
parent fa9fd1e06a
commit 1a45fdc363
22 changed files with 103 additions and 84 deletions
+4 -5
View File
@@ -1,4 +1,3 @@
using Microsoft.AspNetCore.Http.HttpResults;
using Microsoft.AspNetCore.Mvc;
using Strela.Models;
using Strela.Services;
@@ -46,7 +45,7 @@ public class DeviceController : ControllerBase
return Ok(d);
//else return NoContent();
}
}
}
#endregion
//========================= POST ====================================//
@@ -62,12 +61,12 @@ public class DeviceController : ControllerBase
}
}
#endregion
//========================= DELETE ====================================//
#region DELETE
[HttpDelete("DelDevice")]
public IActionResult DelDevice(Guid id) //Удалить устройство по id
{
@@ -78,6 +77,6 @@ public class DeviceController : ControllerBase
db.SaveChanges();
return Ok();
}
}
}
#endregion
}