Create a test backend server with ExpressJs
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import axios from 'axios';
|
||||
|
||||
const showDrawer = ref(true)
|
||||
const testResponse = ref("")
|
||||
|
||||
|
||||
axios.get('http://127.0.0.1:3000/api')
|
||||
.then(function (response) {
|
||||
console.log(response)
|
||||
testResponse.value = response.data
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -17,6 +26,7 @@ const showDrawer = ref(true)
|
||||
</v-navigation-drawer>
|
||||
|
||||
<v-main>
|
||||
{{ testResponse }}
|
||||
<!-- todo -->
|
||||
</v-main>
|
||||
</v-app>
|
||||
|
||||
Reference in New Issue
Block a user