Kalyax
2 years ago
4 changed files with 16 additions and 4 deletions
@ -1,2 +0,0 @@ |
|||
import './src/style.css'; |
|||
//import axios from 'axios';
|
@ -0,0 +1,5 @@ |
|||
import axios from "axios"; |
|||
|
|||
export default async function getTemp(){ |
|||
return await axios.get("/api/temp.php"); |
|||
} |
@ -0,0 +1,6 @@ |
|||
import './style.css'; |
|||
import getTemp from './api_requests.js'; |
|||
getTemp() |
|||
.then((data) => { |
|||
document.getElementById("test").innerHTML = data; |
|||
}) |
Loading…
Reference in new issue