StaffLDB-Minify #1

Merged
fred.boniface merged 27 commits from StaffLDB-Minify into main 2023-10-03 21:37:00 +01:00
Showing only changes of commit a7e24f2cfc - Show all commits

View File

@ -6,10 +6,8 @@
export let station: string; export let station: string;
export let title: string | undefined = 'Loading...'; export let title: string | undefined = 'Loading...';
const fetchUrl = getApiUrl();
async function fetchStaffLdb(station: string) { async function fetchStaffLdb(station: string) {
const url = `${fetchUrl}/api/v2/live/station/${station}/staff`; const url = `${getApiUrl()}/api/v2/live/station/${station}/staff`;
const options = { const options = {
method: 'GET', method: 'GET',
headers: { headers: {