File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
lib/components/NeonEnvironment
src/lib_components/components/NeonEnvironment Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ export interface INeonEnvironment {
3535 getApiLdPath : Record < string , ( ) => string > ;
3636 getAuthApiPath : Record < string , ( ) => string > ;
3737 getDownloadApiPath : Record < string , ( ) => string > ;
38+ getDataProductsTaxonTypesPath : ( ) => string ;
39+ getTaxonTypeDataProductsPath : ( ) => string ;
3840 getAuthPath : Record < string , ( ) => string > ;
3941 authTopics : Record < string , ( ) => string > ;
4042 getVisusProductsBaseUrl : ( ) => Undef < string > ;
Original file line number Diff line number Diff line change @@ -157,6 +157,12 @@ var NeonEnvironment = {
157157 return '/consumer/topic/auth0' ;
158158 }
159159 } ,
160+ getDataProductsTaxonTypesPath : function getDataProductsTaxonTypesPath ( ) {
161+ return "" . concat ( NeonEnvironment . getApiPath . taxonomy , "/types" ) ;
162+ } ,
163+ getTaxonTypeDataProductsPath : function getTaxonTypeDataProductsPath ( ) {
164+ return "" . concat ( NeonEnvironment . getApiPath . taxonomy , "/products" ) ;
165+ } ,
160166 getVisusProductsBaseUrl : function getVisusProductsBaseUrl ( ) {
161167 return process . env . REACT_APP_NEON_VISUS_PRODUCTS_BASE_URL ;
162168 } ,
Original file line number Diff line number Diff line change @@ -192,8 +192,8 @@ const NeonEnvironment: INeonEnvironment = {
192192 getAuth0 : ( ) => '/consumer/topic/auth0' ,
193193 } ,
194194
195- getDataProductsTaxonTypesPath : ( ) : string => `${ NeonEnvironment . getApiPath . taxonomy } /types` ,
196- getTaxonTypeDataProductsPath : ( ) : string => `${ NeonEnvironment . getApiPath . taxonomy } /products` ,
195+ getDataProductsTaxonTypesPath : ( ) : string => `${ NeonEnvironment . getFullApiPath ( ' taxonomy' ) } /types` ,
196+ getTaxonTypeDataProductsPath : ( ) : string => `${ NeonEnvironment . getFullApiPath ( ' taxonomy' ) } /products` ,
197197
198198 getVisusProductsBaseUrl : ( ) : Undef < string > => process . env . REACT_APP_NEON_VISUS_PRODUCTS_BASE_URL ,
199199 getVisusIframeBaseUrl : ( ) : Undef < string > => process . env . REACT_APP_NEON_VISUS_IFRAME_BASE_URL ,
You can’t perform that action at this time.
0 commit comments