public void RegisterRoutes(IEndpointRouteBuilder routeBuilder)
        {
            foreach (var definition in _customEntityDefinition)
            {
                var routePrefix = SlugFormatter.ToSlug(definition.NamePlural);

                routeBuilder
                .ForAdminController <CustomEntityModuleController>(routePrefix)
                .MapIndexRoute(new { Definition = definition });
            }
        }
示例#2
0
        public void RegisterRoutes(IEndpointRouteBuilder routeBuilder)
        {
            foreach (var userArea in _userAreaDefinitionRepository.GetAll())
            {
                var routePrefix = SlugFormatter.ToSlug(userArea.Name);

                routeBuilder
                .ForAdminController <UsersModuleController>(routePrefix + "-users")
                .MapIndexRoute(new { UserArea = userArea });
            }
        }
        public void RegisterRoutes(IEndpointRouteBuilder routeBuilder)
        {
            if (_pagesSettings.Disabled)
            {
                return;
            }

            routeBuilder
            .ForAdminController <VisualEditorController>(VisualEditorRouteLibrary.RoutePrefix)
            .MapRoute("Frame");
        }
        public void RegisterRoutes(IEndpointRouteBuilder routeBuilder)
        {
            foreach (var registration in _standardAdminModuleRegistrations)
            {
                var module = registration.GetModule();
                // if module null, then may be disabled
                if (module == null)
                {
                    continue;
                }

                var routeLibrary = GetRouteLibrary(registration);

                routeBuilder
                .ForAdminController <StandardAngularModuleController>(registration.RoutePrefix)
                .MapIndexRoute(new { RouteLibrary = routeLibrary, ModuleTitle = module.Title });
            }
        }
示例#5
0
        public void RegisterRoutes(IEndpointRouteBuilder routeBuilder)
        {
            // this is usually handled by ForAdminController etc but
            // since we have a custom route for the default redirect we need
            // to check it here.
            if (_adminSettings.Disabled)
            {
                return;
            }

            routeBuilder.ForAdminController <AuthController>("auth")
            .MapIndexRoute()
            .MapRoute("Login")
            .MapRoute("Logout")
            .MapRoute("ForgotPassword")
            .MapRoute("ResetPassword")
            .MapRoute("ChangePassword");

            routeBuilder.MapControllerRoute(
                "Cofoundry Admin - Root default action",
                _adminSettings.DirectoryName,
                new { controller = "Auth", action = "DefaultRedirect", Area = RouteConstants.AdminAreaName }
                );
        }
示例#6
0
 public void RegisterRoutes(IEndpointRouteBuilder routeBuilder)
 {
     routeBuilder
     .ForAdminController <SetupController>(SetupRouteLibrary.RoutePrefix)
     .MapIndexRoute();
 }