<template>
  <h2>Server says: {{ serverHello }}</h2>
</template>

<script setup>
import {useAxios} from "../composables/useAxios.js";
import {onMounted, ref} from "vue";
const {client} = useAxios();

const serverHello = ref('');

onMounted(async () => {
  const response = await client.get('hello')
  serverHello.value = response.data
})

</script>

<style scoped>
</style>
