datahub/wherehows-web/mirage/helpers/dataset-platforms.ts
2018-08-23 14:24:15 -07:00

10 lines
282 B
TypeScript

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