aboutsummaryrefslogtreecommitdiff
path: root/ui/src/routes/list/+page.js
blob: 72e28780e9b35158afaa6a7c94c6de38d6d4e158 (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,
  };
}