2018-01-24 15:41:46 -08:00
|
|
|
import { ApiVersion } from 'wherehows-web/utils/api';
|
|
|
|
import { getApiRoot } from 'wherehows-web/utils/api/shared';
|
2017-12-11 15:16:57 -08:00
|
|
|
|
|
|
|
/**
|
2018-01-24 15:41:46 -08:00
|
|
|
* Composes the url to the list endpoint, will pass-through the api version if provided
|
|
|
|
* @param {ApiVersion} [version] the version of the api to fetch against
|
|
|
|
* @return {string}
|
2017-12-11 15:16:57 -08:00
|
|
|
*/
|
2018-01-24 15:41:46 -08:00
|
|
|
const getListUrlRoot = (version?: ApiVersion) => `${getApiRoot(version)}/list`;
|
2017-12-11 15:16:57 -08:00
|
|
|
|
2018-01-24 15:41:46 -08:00
|
|
|
export { getListUrlRoot };
|