import { createApp } from 'vue'
import App from './App.vue'
import vuetify from './plugins/vuetify'
import { loadFonts } from './plugins/webfontloader'
import router from './router'
loadFonts()
createApp(App).use(router)
.use(vuetify)
.mount('#app')
<script>
//importing bootstrap 5 and axios
import axios from 'axios'
export default {
data(){
return {
auth: false,
login: '',
password: ''
}
},
methods: {
sendDate() {
axios
.post('http://localhost:5000/tutorials', (resp) => {
resp.send("1")
})
axios
.get('http://localhost:5000/tutorials')
.then((resp) => {
console.log("1");
this.auth = resp.data;
})
}
},
mounted () {
//api caling
},
}
</script>