mirror of
https://github.com/magnum-opus-tender-hack/frontend.git
synced 2024-11-23 00:36:36 +03:00
16 lines
375 B
TypeScript
16 lines
375 B
TypeScript
import * as axios from 'axios'
|
|
import {INode} from '../../store/reducers/nodesInputReducer'
|
|
import { fetcher } from './fetch'
|
|
|
|
export default async (nodes: INode[]) => {
|
|
console.log("SEARCH", nodes)
|
|
|
|
const res = await fetcher.post('/search', {
|
|
body: nodes,
|
|
limit: 10,
|
|
offset: 0
|
|
});
|
|
console.log("SEARCHRES", res)
|
|
|
|
return res.data;
|
|
} |