StaffLDB-Minify #1
@ -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