mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-29 05:09:25 +00:00
24 lines
378 B
Svelte
24 lines
378 B
Svelte
<script context="module" lang="ts">
|
|
import { get } from '$lib/api';
|
|
|
|
import type { Load } from '@sveltejs/kit';
|
|
export const load: Load = async () => {
|
|
try {
|
|
const response = await get(`/settings`);
|
|
return {
|
|
stuff: {
|
|
...response
|
|
}
|
|
};
|
|
} catch (error: any) {
|
|
return {
|
|
status: 500,
|
|
error: new Error(error)
|
|
};
|
|
}
|
|
};
|
|
</script>
|
|
|
|
|
|
<slot />
|