diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-03 22:41:20 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-03 22:41:20 -0500 |
| commit | 61612c8e1861ac704bbe592a623a41f12ebc9c11 (patch) | |
| tree | 1da6ae40ab9badaf1ba2cc32eb671b4183f4680d /ui/src/routes/list/+page.js | |
| parent | 8b736f3c0b9b583cb69f01424d214d93d6a9136c (diff) | |
| download | paste-61612c8e1861ac704bbe592a623a41f12ebc9c11.tar.gz paste-61612c8e1861ac704bbe592a623a41f12ebc9c11.tar.xz | |
Add a messy but mostly working UI
Diffstat (limited to 'ui/src/routes/list/+page.js')
| -rw-r--r-- | ui/src/routes/list/+page.js | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/ui/src/routes/list/+page.js b/ui/src/routes/list/+page.js index 1c0c1d5..85435b1 100644 --- a/ui/src/routes/list/+page.js +++ b/ui/src/routes/list/+page.js @@ -1,14 +1,22 @@ +/** @type {import('./$types').PageLoad} */ +// export async function load({ fetch, params }) { +// const res = await fetch(`/api/v1/list`); +// const item = await res.json(); +// +// return { item }; +// } + /** @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, - }; -} +// 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, +// }; +// } |
