mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-19 07:30:54 +00:00
10 lines
282 B
TypeScript
10 lines
282 B
TypeScript
import { IFunctionRouteHandler } from 'wherehows-web/typings/ember-cli-mirage';
|
|
|
|
const getDatasetView = function(this: IFunctionRouteHandler, { datasetViews }: { datasetViews: any }) {
|
|
return {
|
|
dataset: this.serialize(datasetViews.first())
|
|
};
|
|
};
|
|
|
|
export { getDatasetView };
|