mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-26 01:23:16 +00:00
13 lines
380 B
TypeScript
13 lines
380 B
TypeScript
![]() |
import { IFunctionRouteHandler } from 'wherehows-web/typings/ember-cli-mirage';
|
||
|
import { ApiStatus } from 'wherehows-web/utils/api/shared';
|
||
|
|
||
|
const getDatasetColumns = function(this: IFunctionRouteHandler, { columns }: { columns: any }) {
|
||
|
return {
|
||
|
columns: this.serialize(columns.all()),
|
||
|
schemaless: false,
|
||
|
status: ApiStatus.OK
|
||
|
};
|
||
|
};
|
||
|
|
||
|
export { getDatasetColumns };
|