Пример #1
0
        public object Get()
        {
            RewriteHelper.ResolveRewrite(Context, out Site site, out string path);

            if (path == null)
            {
                return(NotFound());
            }

            dynamic d = ProvidersHelper.SectionToJsonModel(site, path);

            return(LocationChanged(ProvidersHelper.GetSectionLocation(d.id), d));
        }
Пример #2
0
        public object Get()
        {
            RewriteHelper.ResolveRewrite(Context, out Site site, out string path);

            if (path == null)
            {
                return(NotFound());
            }

            dynamic d = ServerVariablesHelper.ToJsonModel(site, path);

            return(LocationChanged(ServerVariablesHelper.GetLocation(d.id), d));
        }