Skip to content
Snippets Groups Projects
info.vue 1 KiB
Newer Older
TimFB's avatar
TimFB committed
  <v-container grid-list-xs>
    <NavSwitcher />
  </v-container>
TimFB's avatar
TimFB committed
import NavSwitcher from "~/components/NavSwitcher.vue";
export default {
  components: {
    NavSwitcher,
  },
  created() {
    this.getRibbons();
  },
  methods: {
    async getRibbonsBrickedDemo() {
      await this.$axios
        .get("/api/ribbons?from=2&to=1")
        .then((res) => {
          console.log(res.data);
        })
        .catch((e) => {
          if (e.response) {
            console.log(
              `The API returned with an error status code: ${e.response.status}`
            );
          }
        });
    },
    async getRibbons() {
      await this.$axios
        .get("/api/ribbons")
        .then((res) => {
          console.log(res.data);
        })
        .catch((e) => {
          if (e.response) {
            console.log(
              `The API returned with an error status code: ${e.response.status}`
            );
          }
        });
    },
  },
TimFB's avatar
TimFB committed
};
</script>

<style></style>