datahub/wherehows-web/mirage/helpers/dataset-platforms.ts

10 lines
283 B
TypeScript

import { IFunctionRouteHandler } from 'wherehows-web/typings/ember-cli-mirage';
const getDatasetPlatforms = function(this: IFunctionRouteHandler, { platforms }: { platforms: any }) {
return {
platforms: this.serialize(platforms.all())
};
};
export { getDatasetPlatforms };