Started writing API wrapper

This commit is contained in:
Jef Roosens 2021-12-28 20:40:47 +01:00
parent 9f61d8d48e
commit 66a7cd8def
Signed by: Jef Roosens
GPG key ID: 955C0660072F691F
5 changed files with 67 additions and 2 deletions

View file

@ -0,0 +1,24 @@
<script setup lang="ts">
import { ref } from 'vue'
import { RbApi } from '../api/v1'
import { Section } from '../models'
let sections = ref([])
let api = new RbApi()
await api.sections().then(res => {
sections.value = res
})
</script>
<template>
<div>
<p>yeet</p>
<ul>
<li v-for='section in sections'>
{{ section }}
</li>
</ul>
</div>
</template>