<script>

import { restaurantStore } from '@/PiniaStores/restaurantStore.js'

export default {
  data() {
    return {
      locale:{},

    }
  },
  mounted() {
    fetch(`http://localhost:8080/api/locals/${restaurantStore().id}`)
      .then(res => res.json())
      .then(data => this.locale = data)
      .catch(err => console.log(err));
  },

}
/*console.log(restaurantStore().id)*/

</script>

<template>
  <div id="container" class="border my-3 p-2">

    <h3>{{locale.id}}</h3>
    <h5>{{locale.name}}</h5>

  </div></template>

<style scoped>

</style>
