mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
Support local domains and bundled client patching
This commit is contained in:
@@ -15,5 +15,5 @@ public class ServiceUrlsController(DomainConfig domain) : ControllerBase
|
||||
{
|
||||
[HttpGet("services")]
|
||||
public ActionResult<Dictionary<string, string>> Get()
|
||||
=> Ok(ConfigService.BuildServiceUrlMap(domain.Apex));
|
||||
=> Ok(ConfigService.BuildServiceUrlMap(domain));
|
||||
}
|
||||
|
||||
@@ -37,13 +37,13 @@ public class NsController : ControllerBase
|
||||
// code: locker)" in BootSequence.
|
||||
[HttpGet("/", Order = -1000)]
|
||||
public ActionResult<Dictionary<string, string>> Root() =>
|
||||
Ok(ConfigService.BuildServiceUrlMap(_domain.Apex));
|
||||
Ok(ConfigService.BuildServiceUrlMap(_domain));
|
||||
|
||||
// Some builds fetch /v1 or /v1/services directly
|
||||
[HttpGet("/v1")]
|
||||
[HttpGet("/v1/services")]
|
||||
public ActionResult<Dictionary<string, string>> Services() =>
|
||||
Ok(ConfigService.BuildServiceUrlMap(_domain.Apex));
|
||||
Ok(ConfigService.BuildServiceUrlMap(_domain));
|
||||
|
||||
// Ping / health used by the client keep-alive loop
|
||||
[HttpGet("/v1/ping")]
|
||||
|
||||
Reference in New Issue
Block a user