public void createCustomEndpoint(CustomEndpoint c) { p.addCustomEndpoint(c); }
public void addCustomEndpoint(CustomEndpoint e) { customEndpoints.Add(e); _listener.Prefixes.Add($"http://{e.Hostname}:{e.port}/"); PDLogger.Log($"Started listening from endpoint http://{e.Hostname}:{e.port}/", 3); }