mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-19 07:30:54 +00:00
12 lines
356 B
TypeScript
12 lines
356 B
TypeScript
![]() |
import { IFunctionRouteHandler } from 'wherehows-web/typings/ember-cli-mirage';
|
||
|
import { ApiStatus } from 'wherehows-web/utils/api/shared';
|
||
|
|
||
|
const getDatasetSample = function(this: IFunctionRouteHandler, { samples }: { samples: any }) {
|
||
|
return {
|
||
|
sample: this.serialize(samples.first()),
|
||
|
status: ApiStatus.OK
|
||
|
};
|
||
|
};
|
||
|
|
||
|
export { getDatasetSample };
|