aboutsummaryrefslogtreecommitdiff
path: root/ui/src/routes/list/+page.js
blob: 1c0c1d591480aed7c5aa733b831e67c3d5b12106 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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,
  };
}