🎉 Initial commit for DysonNetwork.Gateway

This commit is contained in:
2025-07-15 18:30:53 +08:00
parent 8fbc81cab9
commit 21b42b5b21
12 changed files with 372 additions and 5 deletions

View File

@@ -0,0 +1,16 @@
using Microsoft.AspNetCore.Mvc;
namespace DysonNetwork.Gateway.Controllers;
[ApiController]
[Route("/.well-known")]
public class WellKnownController(IConfiguration configuration) : ControllerBase
{
[HttpGet("domains")]
public IActionResult GetDomainMappings()
{
var domainMappings = configuration.GetSection("DomainMappings").GetChildren()
.ToDictionary(x => x.Key, x => x.Value);
return Ok(domainMappings);
}
}