Add initial scripting for new staff-ldb
This commit is contained in:
parent
c5201326a1
commit
58fc7277fd
@ -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>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user