mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-29 17:59:24 +00:00
11 lines
316 B
TypeScript
11 lines
316 B
TypeScript
import { faker } from 'ember-cli-mirage';
|
|
import { dasherize } from '@ember/string';
|
|
|
|
export const getAutocompleteDatasets = function(_: any, request: any) {
|
|
return {
|
|
status: 'ok',
|
|
input: request.queryParams.input,
|
|
source: [...Array(10)].map(() => dasherize(faker.lorem.words().toLowerCase()))
|
|
};
|
|
};
|