ui: settings

This commit is contained in:
Andras Bacsai
2022-07-26 12:26:45 +00:00
parent 641dc98e9c
commit e5b505b003
14 changed files with 556 additions and 507 deletions

View File

@@ -0,0 +1,23 @@
<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 />