diff --git a/src/lib/ldb/staff/staff-ldb.svelte b/src/lib/ldb/staff/staff-ldb.svelte index c976e37..d7db1ad 100644 --- a/src/lib/ldb/staff/staff-ldb.svelte +++ b/src/lib/ldb/staff/staff-ldb.svelte @@ -1,14 +1,39 @@ +{#await fetchStaffLdb(station)} + Loading +{:then data} + Loaded {JSON.stringify(data)} +{:catch} + Error Loading +{/await} diff --git a/src/lib/scripts/upstream.ts b/src/lib/scripts/upstream.ts new file mode 100644 index 0000000..8b02fa5 --- /dev/null +++ b/src/lib/scripts/upstream.ts @@ -0,0 +1,9 @@ +import { dev } from "$app/environment"; + +export function getApiUrl() { + if (dev) { + console.info("DEVMODE active, using testing URL") + return "https://testing.owlboard.info" + } + return "https://owlboard.info" +} \ No newline at end of file