<template>
  <h2>List All Items</h2>
  <div>
    <h3>The API endpoint is {{ apiURL }}</h3>
  </div>

  <Suspense>
    <template #default>
      <div>
        <ListData />
      </div>
    </template>
    <template #fallback>
      <div class="v-loading"><h3>Loading...</h3></div>
    </template>
  </Suspense>
</template>

<script setup>
import ListData from "../components/ListData.vue";
const apiURL = jsData.api_url;
</script>

