StaffLDB-Minify #1

Merged
fred.boniface merged 27 commits from StaffLDB-Minify into main 2023-10-03 21:37:00 +01:00
1 changed files with 10 additions and 1 deletions
Showing only changes of commit 58fc7277fd - Show all commits

View File

@ -1,5 +1,14 @@
<script lang="ts">
const fetchUrl = "https://testing.owlboard.info";
async function fetchStaffLdb(station: string) {
const url = `${fetchUrl}/api/v2/live/station/${station}/staff`
const res = await fetch(url)
if (res.status === 200) {
return await res.json()
}
}
</script>