This repository has been archived on 2024-11-29. You can view files and clone it, but cannot push or open issues or pull requests.

19 lines
335 B
JavaScript

import axios from "axios";
const url = `https://devapi.benjamyn.love/migrations/`;
export const getMigrations = () => (dispatch) => {
axios
.get(url)
.then((response) => {
dispatch({
migs: response.data,
});
})
.catch((error) => {
this.setState({
error: true,
});
});
};