mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-13 18:04:55 +00:00
9 lines
329 B
TypeScript
9 lines
329 B
TypeScript
![]() |
import { ApiVersion, getApiRoot } from '@datahub/utils/api/shared';
|
||
|
|
||
|
/**
|
||
|
* Constructs the Feature url root endpoint
|
||
|
* @param {ApiVersion} version the version of the api applicable to retrieve the Feature
|
||
|
* @returns {string}
|
||
|
*/
|
||
|
export const featureUrlRoot = (version: ApiVersion): string => `${getApiRoot(version)}/features`;
|