Visit svelte.dev/docs/kit to read the documentation
+If you know your way around GraphQL, you can try directly interfacing +with the backend.
diff --git a/frontend/src/routes/datasets/+page.server.ts b/frontend/src/routes/datasets/+page.server.ts new file mode 100644 index 0000000..0bf9b4d --- /dev/null +++ b/frontend/src/routes/datasets/+page.server.ts @@ -0,0 +1,9 @@ +import * as backend from '$lib/server/backend'; +import type { PageServerLoad } from './$types'; + +export const load: PageServerLoad = async ({ params }) => { + const datasets: backend.Dataset[] = await backend.list_datasets() + return { + datasets + }; +}; diff --git a/frontend/src/routes/datasets/+page.svelte b/frontend/src/routes/datasets/+page.svelte new file mode 100644 index 0000000..112953e --- /dev/null +++ b/frontend/src/routes/datasets/+page.svelte @@ -0,0 +1,26 @@ + + +Try adding a dataset through the backend.
+{/if}