示例#1
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("Connect/Conference", "ConferenceMap1", "{controller}/{action}", null, null, new[] { "Connect.DNN.Modules.Conference.Api" });
     mapRouteManager.MapHttpRoute("Connect/Conference", "ConferenceMap2", "{controller}/{action}/{id}", null, new { id = "-?\\d+" }, new[] { "Connect.DNN.Modules.Conference.Api" });
     mapRouteManager.MapHttpRoute("Connect/Conference", "ConferenceMap3", "Conference/{conferenceId}/{controller}/{action}", null, new { conferenceId = "\\d*" }, new[] { "Connect.DNN.Modules.Conference.Api" });
     mapRouteManager.MapHttpRoute("Connect/Conference", "ConferenceMap4", "Conference/{conferenceId}/{controller}/{action}/{id}", null, new { conferenceId = "\\d*", id = "-?\\d+" }, new[] { "Connect.DNN.Modules.Conference.Api" });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute(
         moduleFolderName: "Engage/ServicesFrameworkExampleImplementation",
         routeName: "default with extension",
         url: "{controller}.ashx",
         namespaces: new[] { "Engage.Dnn.ServicesFrameworkExampleImplementation" });
     mapRouteManager.MapHttpRoute(
         "Engage/ServicesFrameworkExampleImplementation",
         "default",
         "{controller}",
         new[] { "Engage.Dnn.ServicesFrameworkExampleImplementation" });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute(
         routeName: "file controller ☹",
         moduleFolderName: "Engage/Jackrabbit",
         url: "file/{action}",
         namespaces: new[] { "Engage.Dnn.Jackrabbit.Api", },
         defaults: new { controller = "file", action = "default", });
     mapRouteManager.MapHttpRoute(
         routeName: "default",
         moduleFolderName: "Engage/Jackrabbit",
         url: "{controller}/",
         namespaces: new[] { "Engage.Dnn.Jackrabbit.Api", });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("InternalServices", 
                                     "default", 
                                     "{controller}/{action}", 
                                     new[] { "DotNetNuke.Web.InternalServices" });
 }
示例#5
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute(
     "TAC_HelloWorld",
     "default",
     "{controller}/{action}",
     new string[] { "TAC.Modules.HelloWorld.Services" });
 }
示例#6
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute(
         "DataExchange",
         "default",
         "{controller}/{action}",
         new string[] { "TalkDotNet.Modules.DataExchange.Services" });
 }
示例#7
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute(
     "TestDb",
     "default",
     "{controller}/{action}",
     new string[] { "Christoc.Modules.TestDb.Controller" });
 }
 /// <summary>
 /// RegisterRoutes is used to register the module's routes
 /// </summary>
 /// <param name="mapRouteManager"></param>
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute(
         moduleFolderName:"DnnSpaModule",
         routeName: "default", 
         url: "{controller}/{itemId}", 
         defaults: new { itemId = RouteParameter.Optional }, 
         namespaces: new[] { "Dnn.Modules.DnnSpaModule.Services" });
 }
示例#9
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("FAQs",
                                  "default",
                                  "{controller}/{action}/{output}",
                                  new RouteValueDictionary {{"output", "default"}},
                                  new RouteValueDictionary {{"output", "xml|json|rss|atom|default"}},
                                  new[] {"DotNetNuke.Modules.FAQs.Services"});
 }
示例#10
0
 /// <summary>
 /// RegisterRoutes is used to register the module's routes
 /// </summary>
 /// <param name="mapRouteManager"></param>
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute(
         moduleFolderName:"$safeprojectname$",
         routeName: "default", 
         url: "{controller}/{itemId}", 
         defaults: new { itemId = RouteParameter.Optional }, 
         namespaces: new[] { "$rootnamespace$$safeprojectname$.Services" });
 }
 /// <summary>
 /// RegisterRoutes is used to register the module's routes
 /// </summary>
 /// <param name="mapRouteManager"></param>
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute(
         moduleFolderName: "ModuleStarter",
         routeName: "default",
         url: "{controller}/{itemId}",
         defaults: new { itemId = RouteParameter.Optional },
         namespaces: new[] { "CreativeWizardry.Modules.ModuleStarter.Services" });
 }
示例#12
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute(
         moduleFolderName: "VL_Search",
         routeName: "Default",
         url: "{controller}/{id}",
         defaults: new { id = RouteParameter.Optional },
         namespaces: new[] { "VendorLink.Modules.VL_Search" }
     );
 }
示例#13
0
        public void RegisterRoutes(IMapRoute mapRouteManager)
        {

            mapRouteManager.MapHttpRoute("Announcements",
                  "auto",
                  "{controller}/{action}/{output}",
                  new RouteValueDictionary {{ "output", "auto" }},
                  new RouteValueDictionary {{ "output", "xml|json|rss|atom|auto" }},
                  new[] { "DotNetNuke.Modules.Announcements.Services" });
        }
示例#14
0
        public void RegisterRoutes(IMapRoute mapRouteManager)
        {
            // Route Concept
            // starting with eav means it's a rather low-level admin function, always needs an AppId
            // eav
            // eav-???
            // starting with app means that it's a app-specific action, more for the JS developers working with content
            // app-content  will do basic content-actions like get one, edit, update, delete
            // app-query    will try to request a query
            // app-api      will call custom c# web-apis of a specific app

            mapRouteManager.MapHttpRoute("2sxc", "EAV", "EAV/{controller}/{action}", new[] { "ToSic.SexyContent.EAVExtensions.EavApiProxies" });

            mapRouteManager.MapHttpRoute("2sxc", "View", "View/{controller}/{action}", new[] { "ToSic.SexyContent.ViewAPI" });

            mapRouteManager.MapHttpRoute("2sxc", "adam", "app-content/{contenttype}/{guid}/{field}", new { controller = "Adam" }, new[] { "ToSic.SexyContent.Adam" });

            mapRouteManager.MapHttpRoute("2sxc", "app-content", "app-content/{contenttype}/{id}", new { controller = "AppContent", id = RouteParameter.Optional }, new[] { "ToSic.SexyContent.WebApi" });
            mapRouteManager.MapHttpRoute("2sxc", "app-api", "app-api/{controller}/{action}", new[] { "ToSic.SexyContent.Apps" });
            mapRouteManager.MapHttpRoute("2sxc", "app-query", "app-query/{name}", new { controller = "AppQuery"}, new[] { "ToSic.SexyContent.WebApi" });
            mapRouteManager.MapHttpRoute("2sxc", "app", "app/{controller}/{action}", new[] { "ToSic.SexyContent.WebApi" });
            mapRouteManager.MapHttpRoute("2sxc", "dnn", "dnn/{controller}/{action}", new[] { "ToSic.SexyContent.WebApi.Dnn" });
            mapRouteManager.MapHttpRoute("2sxc", "default", "{controller}/{action}", new[] { "ToSic.SexyContent.GettingStarted" });

            /*
            mapRouteManager.MapHttpRoute("2sxc", "named-app-query", "app/{apppath}/query/{name}", new { controller = "AppQuery" }, new[] { "ToSic.SexyContent.WebApi" });
            mapRouteManager.MapHttpRoute("2sxc", "named-app-api", "app/{apppath}/api/{controller}/{action}", new[] { "ToSic.SexyContent.Apps" });
            mapRouteManager.MapHttpRoute("2sxc", "named-app-content", "app/{apppath}/{contenttype}/{id}", new { controller = "AppContent", id = RouteParameter.Optional }, new[] { "ToSic.SexyContent.WebApi" });
            */

            var config = GlobalConfiguration.Configuration;
            var previousSelector = config.Services.GetService(typeof(IHttpControllerSelector)) as IHttpControllerSelector;
            config.Services.Replace(typeof(IHttpControllerSelector), new AppApiControllerSelector(config) { PreviousSelector = previousSelector });

            // Also register Unity Dependency-Injection here, since this will certainly run once early during bootup
            new UnityConfig().Configure();
        }
示例#15
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("CodeCamp", "default", "{controller}/{action}", new[] { "WillStrohl.Modules.CodeCamp.Services" });
 }
        public void RegisterRoutes(IMapRoute mapRouteManager)
        {
            mapRouteManager.MapHttpRoute("Services", "identity", "{controller}/{action}/{id}", new[] { "DnnServices" });

            mapRouteManager.MapHttpRoute("Services", "default", "{controller}/{action}", new[] { "DnnServices" });
        }
示例#17
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("Logo", "default", "{controller}/{action}", new[] { "Vanjaro.UXManager.Extensions.Block.Logo.Controllers" });
 }
 public void RegisterRoutes(IMapRoute routeManager)
 {
     routeManager.MapHttpRoute("<%= props.organization %>/<%= props.projectName %>", "<%= props.organization %><%= props.projectName %>1", "{controller}/{action}", null, null, new[] { "<%= props.organization %>.DNN.Modules.<%= props.projectName %>.Controllers" });
     routeManager.MapHttpRoute("<%= props.organization %>/<%= props.projectName %>", "<%= props.organization %><%= props.projectName %>2", "{controller}/{action}/{id}", null, new { id = "\\d*" }, new[] { "<%= props.organization %>.DNN.Modules.<%= props.projectName %>.Controllers" });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("OneDrive", "default", "{controller}/{action}", new[] { "LinkWise.Modules.OneDrive.Components.Services" });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("GBAlbum", "{controller}.ashx/{action}", "", new[] { "GB.Album.Components.Services" });
 }
示例#21
0
 /// <summary>
 /// Registers the routes.
 /// </summary>
 /// <param name="routeManager">The route manager.</param>
 public void RegisterRoutes(IMapRoute routeManager)
 {
     routeManager.MapHttpRoute("AJ_Quiz_DnnAngular", "default", "{controller}/{action}",
                               new[] { "AJ_Quiz_DnnAngular.WebApi.controller" });
 }
示例#22
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("Albatros/Balises", "BalisesMap1", "{controller}/{action}", null, null, new[] { "Albatros.DNN.Modules.Balises.Api" });
     mapRouteManager.MapHttpRoute("Albatros/Balises", "BalisesMap2", "{controller}/{action}/{id}", null, new { id = "-?\\d+" }, new[] { "Albatros.DNN.Modules.Balises.Api" });
 }
示例#23
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("ActiveForums", "default", "{controller}/{action}", new {}, new[] { "DotNetNuke.Modules.ActiveForums" });
 }
示例#24
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("RPGFLScheduledJobs", "default", "{controller}/{action}", new[] { "Christoc.Modules.RPGFLScheduledJobs.Models" });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("nBrane/AdministrationSuite", "default", "{controller}/{action}", new[] { "nBrane.Modules.AdministrationSuite.Components" });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("ExploreSettings", "default", "{controller}/{action}", new[] {"ExploreSettings"});
 }
示例#27
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("Connect/DocBrowser", "DocBrowserMap1", "{controller}/{action}", null, null, new[] { "Connect.DNN.Modules.DocBrowser.Api" });
     mapRouteManager.MapHttpRoute("Connect/DocBrowser", "DocBrowserMap2", "{controller}/{action}/{id}", null, new { id = "-?\\d+" }, new[] { "Connect.DNN.Modules.DocBrowser.Api" });
 }
示例#28
0
 public void RegisterRoutes(IMapRoute routeManager)
 {
     //routeManager.MapHttpRoute("PowerBI", "default", "{controller}/{action}", new[] { "DotNetNuke.PowerBI.Controllers" });
     routeManager.MapHttpRoute("PowerBI/UI", "default", "{controller}/{action}", new[] { "DotNetNuke.PowerBI.Controllers.Api.Admin" });
     routeManager.MapHttpRoute("Bookmarks", "default", "{controller}/{action}", new[] { "DotNetNuke.PowerBI.Services" });
 }
示例#29
0
        public void RegisterRoutes(IMapRoute mapRouteManager)
        {
            // Route Concept
            // starting with eav means it's a rather low-level admin function, always needs an AppId
            // eav
            // eav-???
            // starting with app means that it's a app-specific action, more for the JS developers working with content
            // app-content  will do basic content-actions like get one, edit, update, delete
            // app-query    will try to request a query
            // app-api      will call custom c# web-apis of a specific app



            mapRouteManager.MapHttpRoute("2sxc", "EAV", "EAV/{controller}/{action}", new[] { "ToSic.SexyContent.EAVExtensions.EavApiProxies" });


            mapRouteManager.MapHttpRoute("2sxc", "View", "view/{controller}/{action}", new[] { "ToSic.SexyContent.WebApi.View" });

            mapRouteManager.MapHttpRoute("2sxc", "adam", "app-content/{contenttype}/{guid}/{field}", new { controller = "Adam" }, new[] { "ToSic.SexyContent.Adam" });
            mapRouteManager.MapHttpRoute("2sxc", "adam2", "app-content/{contenttype}/{guid}/{field}/{action}", new { controller = "Adam" }, new[] { "ToSic.SexyContent.Adam" });

            mapRouteManager.MapHttpRoute("2sxc", "app-content", "app-content/{contenttype}/{id}", new { controller = "AppContent", id = RouteParameter.Optional }, new[] { "ToSic.SexyContent.WebApi" });
            mapRouteManager.MapHttpRoute("2sxc", "app-api", "app-api/{controller}/{action}", new[] { "ToSic.SexyContent.Apps" });
            mapRouteManager.MapHttpRoute("2sxc", "app-query", "app-query/{name}", new { controller = "AppQuery" }, new[] { "ToSic.SexyContent.WebApi" });
            mapRouteManager.MapHttpRoute("2sxc", "app-query-nomod", "app-query/{appname}/{name}", new { controller = "AppQuery" }, new[] { "ToSic.SexyContent.WebApi" });
            mapRouteManager.MapHttpRoute("2sxc", "app", "app/{controller}/{action}", new[] { "ToSic.SexyContent.WebApi" });
            mapRouteManager.MapHttpRoute("2sxc", "dnn", "dnn/{controller}/{action}", new[] { "ToSic.SexyContent.WebApi.Dnn" });
            mapRouteManager.MapHttpRoute("2sxc", "default", "{controller}/{action}", new[] { "ToSic.SexyContent.WebApi" });

            var config           = GlobalConfiguration.Configuration;
            var previousSelector = config.Services.GetService(typeof(IHttpControllerSelector)) as IHttpControllerSelector;

            config.Services.Replace(typeof(IHttpControllerSelector), new AppApiControllerSelector(config)
            {
                PreviousSelector = previousSelector
            });

            // Also register Unity Dependency-Injection here, since this will certainly run once early during bootup
            new UnityConfig().Configure();
        }
示例#30
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("SocialGroups", "default", "{controller}/{action}", new[] { "DotNetNuke.Modules.Groups" });
 }
示例#31
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("CreateLeagueModule", "default", "{controller}/{action}", new[] { "Christoc.Modules.CreateLeagueModule.Models" });
 }
示例#32
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("R7.News.Stream", "NewsStreamFeedMap1", "{controller}/{action}", null, null, new [] { "R7.News.Stream.Api" });
 }
示例#33
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("Journal", "default", "{controller}/{action}", new[] { "DotNetNuke.Modules.Journal" });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("vjURL", "default", "{controller}/{action}", new[] { "Vanjaro.URL.Controllers" });
 }
示例#35
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("SiteGroups", "default", "{controller}/{action}", new[] { "Vanjaro.UXManager.Extensions.Menu.SiteGroups.Controllers" });
 }
示例#36
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("MVC/<%= namespace %>/<%= extensionName %>", "default", "{controller}/{action}", new[] { "<%= fullNamespace %>.Services" });
 }
示例#37
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("Albatros/Balises", "BalisesMap1", "{controller}/{action}", null, null, new[] { "Albatros.DNN.Modules.Balises.Api" });
     mapRouteManager.MapHttpRoute("Albatros/Balises", "BalisesMap2", "{controller}/{action}/{id}", null, new { id = "-?\\d+" }, new[] { "Albatros.DNN.Modules.Balises.Api" });
 }
示例#38
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("DnnExtendedFilter", "default", "{controller}/{action}", new[] { "DnnExtendedFilter.Controller" });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("ActiveForums", "default", "{controller}/{action}", new {}, new[] { "DotNetNuke.Modules.ActiveForums" });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("Dnn_BulkUserDelete", "default", "{controller}/{action}", new[] {"Dnn.Modules.BulkUserDelete"});
 }
示例#41
0
        public void RegisterRoutes(IMapRoute mapRouteManager)
        {
            // Route Concept
            // starting with eav means it's a rather low-level admin function, always needs an AppId
            // eav
            // eav-???
            // starting with app means that it's a app-specific action, more for the JS developers working with content
            // app-content  will do basic content-actions like get one, edit, update, delete
            // app-query    will try to request a query
            // app-api      will call custom c# web-apis of a specific app

            var stdNsWebApi = new[] { "ToSic.SexyContent.WebApi" };
            var stdNsApps   = new[] { "ToSic.SexyContent.Apps" };
            var stdNsAdam   = new[] { "ToSic.Sxc.Adam.WebApi" };

            #region EAV and View-routes
            mapRouteManager.MapHttpRoute("2sxc", "EAV", "EAV/{controller}/{action}", new[] { "ToSic.SexyContent.WebApi.EavApiProxies" });
            mapRouteManager.MapHttpRoute("2sxc", "View", "view/{controller}/{action}", new[] { "ToSic.SexyContent.WebApi.View" });
            #endregion

            #region old API routes before 08.10
            // ADAM routes
            mapRouteManager.MapHttpRoute("2sxc", "adam-old-81", "app-content/{contenttype}/{guid}/{field}", new { controller = "Adam" }, stdNsAdam);
            mapRouteManager.MapHttpRoute("2sxc", "adam", "app-content/{contenttype}/{guid}/{field}/{action}", new { controller = "Adam" }, stdNsAdam);

            // App Content routes - for GET/DELETE/PUT entities using REST
            // 1. Type and null or int-id
            // 2. Type and guid-id
            mapRouteManager.MapHttpRoute("2sxc", "app-content", "app-content/{contenttype}/{id}", new { controller = "AppContent", id = RouteParameter.Optional },
                                         new { id = @"^\d*$" }, // Only matches if "id" is null, or built only with digits.
                                         stdNsWebApi);
            mapRouteManager.MapHttpRoute("2sxc", "app-content-guid", "app-content/{contenttype}/{guid}", new { controller = "AppContent" }, stdNsWebApi);

            // App-API routes - for the custom code API calls of an app
            // these are the old routes, before 2sxc v08.10
            mapRouteManager.MapHttpRoute("2sxc", "app-api-old-81", "app-api/{controller}/{action}", stdNsApps);

            // App-Query routes - to access designed queries
            // these are the old routes, before 2sxc v08.10
            mapRouteManager.MapHttpRoute("2sxc", "app-query-old-81", "app-query/{name}", new { controller = "AppQuery" }, stdNsWebApi);
            mapRouteManager.MapHttpRoute("2sxc", "app-query-nomod-old-81", "app-query/{appname}/{name}", new { controller = "AppQuery" }, stdNsWebApi); // keep for backward compatibility...
            #endregion

            #region new API routes after 08.10

            var appAuto = "app/auto/";
            var appPath = "app/{apppath}/";
            // ADAM routes
            mapRouteManager.MapHttpRoute("2sxc", "adam-auto", appAuto + "content/{contenttype}/{guid}/{field}", new { controller = "Adam" }, stdNsAdam);
            mapRouteManager.MapHttpRoute("2sxc", "adam2-auto", appAuto + "content/{contenttype}/{guid}/{field}/{action}", new { controller = "Adam" }, stdNsAdam);

            // App Content routes - for GET/DELETE/PUT entities using REST
            // 1. Type and null or int-id
            // 2. Type and guid-id
            mapRouteManager.MapHttpRoute("2sxc", "app-content-auto", appAuto + "content/{contenttype}/{id}", new { controller = "AppContent", id = RouteParameter.Optional },
                                         new { id = @"^\d*$" }, // Only matches if "id" is null, or built only with digits.
                                         stdNsWebApi);
            mapRouteManager.MapHttpRoute("2sxc", "app-content-new-guid", appAuto + "content/{contenttype}/{guid}", new { controller = "AppContent" }, stdNsWebApi);

            mapRouteManager.MapHttpRoute("2sxc", "app-content-new-named", appPath + "content/{contenttype}/{id}", new { controller = "AppContent", id = RouteParameter.Optional },
                                         new { id = @"^\d*$" }, // Only matches if "id" is null, or built only with digits.
                                         stdNsWebApi);
            mapRouteManager.MapHttpRoute("2sxc", "app-content-new-guid-named", appPath + "content/{contenttype}/{guid}", new { controller = "AppContent" }, stdNsWebApi);

            // App-API routes - for the custom code API calls of an app
            mapRouteManager.MapHttpRoute("2sxc", "app-api-auto", appAuto + "api/{controller}/{action}", stdNsApps);   // new, v08.10+
            mapRouteManager.MapHttpRoute("2sxc", "app-api-public", appPath + "api/{controller}/{action}", stdNsApps); // new public v08.10+

            // App-Query routes - to access designed queries
            // new routes, v08.10+
            mapRouteManager.MapHttpRoute("2sxc", "app-query-auto", appAuto + "query/{name}", new { controller = "AppQuery" }, stdNsWebApi);
            mapRouteManager.MapHttpRoute("2sxc", "app-query-auto-slash", appAuto + "query/{name}/", new { controller = "AppQuery" }, stdNsWebApi);
            mapRouteManager.MapHttpRoute("2sxc", "app-query-auto-stream", appAuto + "query/{name}/{stream}", new { controller = "AppQuery" }, stdNsWebApi);
            mapRouteManager.MapHttpRoute("2sxc", "app-query-public", appPath + "query/{name}", new { controller = "AppQuery" }, stdNsWebApi);
            #endregion


            #region API calls for app-sys, dnn, default
            // System calls to app, dnn, default
            // 2017-02-17 2dm: disabled, as the "app" route will be used for apps now:
            // mapRouteManager.MapHttpRoute("2sxc", "app", "app/{controller}/{action}", stdNsWebApi);
            // 2017-02-17 2dm: new alternate route to replace the "app" route, because I want app to be reserved!
            mapRouteManager.MapHttpRoute("2sxc", "app-sys", "app-sys/{controller}/{action}", stdNsWebApi);
            mapRouteManager.MapHttpRoute("2sxc", "dnn", "dnn/{controller}/{action}", new[] { "ToSic.SexyContent.WebApi.Dnn" });
            mapRouteManager.MapHttpRoute("2sxc", "default", "{controller}/{action}", stdNsWebApi);
            #endregion

            // Add custom service locator into the chain of service-locators
            // this is needed to enable custom API controller lookup for the app-api
            var config           = GlobalConfiguration.Configuration;
            var previousSelector = config.Services.GetService(typeof(IHttpControllerSelector)) as IHttpControllerSelector;
            config.Services.Replace(typeof(IHttpControllerSelector), new AppApiControllerSelector(config)
            {
                PreviousSelector = previousSelector
            });

            // Also register Unity Dependency-Injection here, since this will certainly run once early during bootup
            // do this by accessing a setting, which registers everything
            Settings.EnsureSystemIsInitialized();
        }
        public void RegisterRoutes(IMapRoute mapRouteManager)
        {
            mapRouteManager.MapHttpRoute("Services", "identity", "{controller}/{action}/{id}", new[] { "DnnServices" });

            mapRouteManager.MapHttpRoute("Services", "default", "{controller}/{action}", new[] { "DnnServices" });
        }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("ShoutboxSpa", "default", "{controller}/{action}", new[] { "ShoutboxSpa.Services" });
 }
 /// <inheritdoc/>
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager?.MapHttpRoute("Eraware_LanaguageTroubleshooter", "default", "{controller}/{action}", new[] { typeof(ServiceRouteMapper).Namespace });
 }
 /// <summary>
 /// RegisterRoutes is used to register the module's routes
 /// </summary>
 /// <param name="mapRouteManager"></param>
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("Ftp/FamilyTreeProject", "default", "{controller}/{action}", new[] { "FamilyTreeProject.Dnn.Services" });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("OpenBlocks", "default", "{controller}/{action}", new[] { "Satrabel.OpenBlocks.TemplateEditor" });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("MemberDirectory", "default", "{controller}/{action}", new[] { "DotNetNuke.Modules.MemberDirectory.Services" });
 }
示例#48
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute(@"TidyModules/DocumentExplorer", "default", "{controller}/{action}", new[] { "TidyModules.DocumentExplorer.Components" });
 }
示例#49
0
 /// <summary>
 /// Registers the routes.
 /// </summary>
 /// <param name="routeManager">The route manager.</param>
 public void RegisterRoutes(IMapRoute routeManager)
 {
     routeManager.MapHttpRoute("BBImageStory_Module", "default", "{controller}/{action}",
             new[] { "Bitboxx.DNNModules.BBImageStory.Services" });
 }
示例#50
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("MyDnnSupport.LiveChat", "default", "{controller}/{action}", new[] { "MyDnn.Modules.Support.LiveChat.Services" });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("Journal", "default", "{controller}/{action}", new[] { "DotNetNuke.Modules.Journal" });
 }
示例#52
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("MyDnnSupport.LiveChat", "default", "{controller}/{action}", new[] { "MyDnn.Modules.Support.LiveChat" });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("OpenForm", "default", "{controller}/{action}", new[] { "Satrabel.OpenForm.Components" });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("DigitalAssets", "default", "{controller}/{action}", new[] { "DotNetNuke.Modules.DigitalAssets.Services" });
 }
示例#55
0
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute(
         "JwtAuth", "default", "{controller}/{action}", new[] { GetType().Namespace });
 }
示例#56
0
 public void RegisterRoutes(IMapRoute routeManager)
 {
     routeManager.MapHttpRoute(FeatureController.DESKTOPMODULE_NAME, "default", "{controller}/{action}",
                               new[] { "DotNetNuclear.Modules.LogAnalyzer.Services.Controllers" });
 }
 public void RegisterRoutes(IMapRoute mapRouteManager)
 {
     mapRouteManager.MapHttpRoute("Preview", "default", "{controller}/{action}", new[] { "Vanjaro.UXManager.Extensions.Toolbar.Preview.Controllers" });
 }
 public void RegisterRoutes(IMapRoute routeManager)
 {
     routeManager.MapHttpRoute(moduleFolderName, "invite", "{controller}/{action}",
                               new[] { "DotNetNuclear.Modules.InviteRegister.Services.Controllers" });
 }
示例#59
0
        public void RegisterRoutes(IMapRoute mapRouteManager)
        {
			mapRouteManager.MapHttpRoute("Taxonomy", "default", "{controller}/{action}", new[] { "DotNetNuke.Modules.Taxonomy.Services" });
        }
示例#60
0
 /// <summary>
 /// Registers the routes.
 /// </summary>
 /// <param name="routeManager">The route manager.</param>
 public void RegisterRoutes(IMapRoute routeManager)
 {
     routeManager.MapHttpRoute(Constants.DESKTOPMODULE_NAME, "default", "{controller}/{action}",
             new[] { "Bitboxx.DNNModules.BBAngular.Services" });
 }