Merge branch 'staging' of https://git.triggermeelmo.com/Watcher/watcher into staging
This commit is contained in:
@@ -108,7 +108,7 @@ public class MonitoringController : Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Endpoint, an den der Agent seine Hardwareinformationen schickt
|
// Endpoint, an den der Agent seine Hardwareinformationen schickt (Registrierung Schritt 2)
|
||||||
[HttpPost("hardware-info")]
|
[HttpPost("hardware-info")]
|
||||||
public async Task<IActionResult> Register([FromBody] HardwareDto dto)
|
public async Task<IActionResult> Register([FromBody] HardwareDto dto)
|
||||||
{
|
{
|
||||||
@@ -151,7 +151,7 @@ public class MonitoringController : Controller
|
|||||||
return NotFound("No Matching Server found.");
|
return NotFound("No Matching Server found.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Endpoint, an dem sich ein Agent initial registriert
|
// Endpoint, an dem sich ein Agent seine ID abholt (Registrierung Schritt 1)
|
||||||
[HttpGet("register")]
|
[HttpGet("register")]
|
||||||
public async Task<IActionResult> GetServerIdByIp([FromQuery] string IpAddress)
|
public async Task<IActionResult> GetServerIdByIp([FromQuery] string IpAddress)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user