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