frontend/pages/api/create_hints.ts
Firesieht 81c649d102 bigs
2022-10-22 19:11:56 +03:00

13 lines
301 B
TypeScript

import { INode } from "../../store/reducers/nodesInputReducer";
import { fetcher } from "./fetch";
export default async (word: string, hints:INode[]) => {
const data = await fetcher.post('/autocomplete_schema', {
content: word,
exclude: []
});
return data.data.nodes;
}