mirror of
https://github.com/magnum-opus-tender-hack/frontend.git
synced 2024-11-26 10:13:44 +03:00
10 lines
268 B
TypeScript
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;
|
|
} |