mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-18 23:02:11 +00:00
12 lines
369 B
TypeScript
12 lines
369 B
TypeScript
import { IFunctionRouteHandler } from 'wherehows-web/typings/ember-cli-mirage';
|
|
import { ApiStatus } from 'wherehows-web/utils/api/shared';
|
|
|
|
const getDatasetInstances = function(this: IFunctionRouteHandler, { instances }: { instances: any }) {
|
|
return {
|
|
instances: this.serialize(instances.all()),
|
|
status: ApiStatus.OK
|
|
};
|
|
};
|
|
|
|
export { getDatasetInstances };
|