mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-23 17:39:59 +00:00
11 lines
411 B
TypeScript
11 lines
411 B
TypeScript
import { IFunctionRouteHandler } from '@datahub/utils/types/vendor/ember-cli-mirage-deprecated';
|
|
import { DatasetPlatform } from '@datahub/metadata-types/constants/entity/dataset/platform';
|
|
|
|
export const getBrowsePlatforms = function(this: IFunctionRouteHandler): Array<string> {
|
|
return this.serialize(
|
|
Object.values(DatasetPlatform)
|
|
.sort()
|
|
.map(platform => `[platform=${platform}]`)
|
|
);
|
|
};
|