diff options
Diffstat (limited to 'ui/src/routes/list/+page.js')
| -rw-r--r-- | ui/src/routes/list/+page.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/src/routes/list/+page.js b/ui/src/routes/list/+page.js new file mode 100644 index 0000000..72e2878 --- /dev/null +++ b/ui/src/routes/list/+page.js @@ -0,0 +1,14 @@ + + + + +/** @type {import('./$types').PageLoad} */ +export async function load({ params }) { + const req = await fetch(`http://localhost:6130/api/v1/list`) + const reqJson = await req.json(); + + return { + req: req, + reqJson: reqJson, + }; +}
\ No newline at end of file |
