Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios

import axios from "axios";

async function getData() {
	const resGet = await axios.get("http://localhost:8000/datas");
	const resData = resGet.data;
	console.log('data :>> ', resData);
	return resData
};
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #axios
ADD COMMENT
Topic
Name
3+1 =