Files
cms/src/main/resources/templates/dist/axiosTest.html

23 lines
508 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>axios</title>
</head>
<body>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>
var data = "";
var data = "";
axios.get('http://localhost:8080/cms/download/findall')
.then(function (response) {
//console.log(response.data);
data = response.data
})
.catch(function (error) {
//console.log(error);
});
</script>
</body>
</html>