Exemplo n.º 1
0
        private void ConfigureCentralCerts()
        {
            Environment.Host.RouteBuilder.MapWebApiRoute(Defines.Resource.Guid, $"{Defines.PATH}/{{id?}}", new { controller = "CentralCerts" });

            Environment.Hal.ProvideLink(Defines.Resource.Guid, "self", cc => new { href = $"/{Defines.PATH}/{ new CentralCertConfigId().Uuid}" });
            Environment.Hal.ProvideLink(WebServer.Defines.Resource.Guid, Defines.Resource.Name, _ => new { href = CentralCertHelper.GetLocation() });
        }
        public object Get()
        {
            RequireEnabled();

            return(LocationChanged(CentralCertHelper.GetLocation(), CentralCertHelper.ToJsonModel()));
        }