aboutsummaryrefslogtreecommitdiff
path: root/src/requests.ts
blob: c65307395f70ed4ef6a3409126ca5e27faf1a9af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import axios from 'axios';

const baseApiUrl = 'http://localhost:3030';

export const get = (url: string) => {
  return axios.get(baseApiUrl + url)
};

export const post = (url: string, data: object) => {
  return axios.post(baseApiUrl + url, data);
};