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

const baseURL = process.env.NODE_ENV === 'production'
  ? 'PUT_PRODUCTION_URL_HERE'
  : 'http://localhost:3030';

const requests = axios.create({ baseURL });

export const { get, post, put, patch } = requests;
export default requests;