Axios
Install Axios:
$ npm install axios
Create a json file in public folder such as public/api/test.json
get method:
import axios from "axios";
axios.get('/api/test.json').then().catch()
Notice: axios.get( 'full name with json')
Last updated
Install Axios: $ npm install axios
Create a json file in public folder such as public/api/test.json
get method:
import axios from "axios";
axios.get('/api/test.json').then().catch()
Notice: axios.get( 'full name with json')
Last updated