frontend/pages/api/create_hints.ts

10 lines
194 B
TypeScript
Raw Normal View History

2022-10-22 10:37:05 +03:00
import { fetcher } from "./fetch";
export default async (word: string) => {
const data = await fetcher.post('/autocomplete_schema', {
content: word
});
return data.data;
}