Add initial scripting for new staff-ldb

This commit is contained in:
Fred Boniface 2023-08-30 19:15:37 +01:00
parent c5201326a1
commit 58fc7277fd

View File

@ -1,5 +1,14 @@
<script lang="ts"> <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> </script>