File size: 236 Bytes
181e22f
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import axios from 'axios';

export function sendHello (msg, callback = () => {}) {
  return (dispatch) => {
    axios.post('/api/hello', {
      msg,
    })
    .then((res) => {
      console.log('## res is: ', res.data)
    });
  };
}