Initial commit.

This commit is contained in:
2026-03-13 10:23:47 +01:00
parent fd81c63020
commit 39c8b861c0
44 changed files with 1144 additions and 4 deletions

View File

@@ -0,0 +1,27 @@
using ClientApiPoC.Shared;
using ClientApiPoC.Shared.Models;
using Microsoft.AspNetCore.Mvc;
namespace ClientApiPoC.ApiService.Controllers {
[ApiController]
[Route(Routes.EXAMPLE_REQUEST)]
public class ExampleRequestController : ControllerBase {
private readonly TunnelServer _tunnel;
public ExampleRequestController(TunnelServer tunnel) {
if (tunnel == null) throw new ArgumentNullException(nameof(tunnel));
_tunnel = tunnel;
}
[HttpGet]
public async Task<ExampleRequestResultModel> Get() {
// Daten der Clients abfragen...
var clients = await _tunnel.GetDataFromAllClientsAsync();
var result = new ExampleRequestResultModel() {
ServerMessage = "Hello, world!",
Clients = clients
};
return result;
}
}
}