Skip to content

Commit 4faf0a7

Browse files
committed
Added functions for data product and taxon type API calls.
1 parent c854b75 commit 4faf0a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib_components/components/NeonEnvironment/NeonEnvironment.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ export interface INeonEnvironment {
8888
getAuthApiPath: Record<string, () => string>;
8989
getDownloadApiPath: Record<string, () => string>;
9090

91+
getDataProductsTaxonTypesPath: () => string;
92+
getTaxonTypeDataProductsPath: () => string;
93+
9194
getAuthPath: Record<string, () => string>;
9295

9396
authTopics: Record<string, () => string>;
@@ -189,6 +192,9 @@ const NeonEnvironment: INeonEnvironment = {
189192
getAuth0: () => '/consumer/topic/auth0',
190193
},
191194

195+
getDataProductsTaxonTypesPath: (): string => `${NeonEnvironment.getApiPath.taxonomy}/types`,
196+
getTaxonTypeDataProductsPath: (): string => `${NeonEnvironment.getApiPath.taxonomy}/products`,
197+
192198
getVisusProductsBaseUrl: (): Undef<string> => process.env.REACT_APP_NEON_VISUS_PRODUCTS_BASE_URL,
193199
getVisusIframeBaseUrl: (): Undef<string> => process.env.REACT_APP_NEON_VISUS_IFRAME_BASE_URL,
194200

0 commit comments

Comments
 (0)