frontend/pages/api/search.ts
2022-10-22 10:37:05 +03:00

10 lines
268 B
TypeScript

import * as axios from 'axios'
import {INode} from '../../store/reducers/nodesInputReducer'
import { fetcher } from './fetch'
export default async (nodes: INode[]) => {
const res = await fetcher.post('/search', {
body: nodes
});
return res.data;
}