private ModuleJsRouteLibrary GetJsRouteLibrary(IStandardAngularModuleRegistration registration) { var routeLibrary = GetRouteLibrary(registration); var jsRouteLibrary = new ModuleJsRouteLibrary(routeLibrary); return(jsRouteLibrary); }
private AngularModuleRouteLibrary GetRouteLibrary(IStandardAngularModuleRegistration registration) { AngularModuleRouteLibrary routeLibrary; if (registration is IInternalAngularModuleRegistration) { // Internal modules are in a different folder format to prevent name clashes routeLibrary = new AngularModuleRouteLibrary( _adminSettings, registration.RoutePrefix, RouteConstants.InternalModuleResourcePathPrefix ); } else if (registration is IPluginAngularModuleRegistration) { // Plugin modules are in a different folder format to prevent name clashes routeLibrary = new AngularModuleRouteLibrary( _adminSettings, registration.RoutePrefix, RouteConstants.PluginModuleResourcePathPrefix ); } else { routeLibrary = new AngularModuleRouteLibrary(_adminSettings, registration.RoutePrefix); } return(routeLibrary); }