mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-25 09:00:50 +00:00
12 lines
368 B
TypeScript
12 lines
368 B
TypeScript
import { IFunctionRouteHandler } from 'wherehows-web/typings/ember-cli-mirage';
|
|
import { ApiStatus } from 'wherehows-web/utils/api/shared';
|
|
|
|
const getDatasetView = function(this: IFunctionRouteHandler, { datasetViews }: { datasetViews: any }) {
|
|
return {
|
|
dataset: this.serialize(datasetViews.first()),
|
|
status: ApiStatus.OK
|
|
};
|
|
};
|
|
|
|
export { getDatasetView };
|