From d391ce632be29c49a612c64eb5f720238a46844d Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 17 Jan 2025 16:15:56 +0100 Subject: feat(server): Add all in one http server --- server/frontend/src/Test.tsx | 48 ++++++++++++++++++++++++++------------------ 1 file changed, 28 insertions(+), 20 deletions(-) (limited to 'server/frontend/src/Test.tsx') diff --git a/server/frontend/src/Test.tsx b/server/frontend/src/Test.tsx index 6eee2d6..15d2f73 100644 --- a/server/frontend/src/Test.tsx +++ b/server/frontend/src/Test.tsx @@ -1,23 +1,31 @@ -import {A, createAsync} from "@solidjs/router"; -import {client} from "./api.js"; -import {For, Suspense} from "solid-js"; +import { A, createAsync } from "@solidjs/router"; +import { client } from "./api.js"; +import { For, Suspense } from "solid-js"; export default function Test() { - let items = createAsync(() => client.GET("/item", { - params: { - query: { - itemId: ['HYPERION', 'BAT_WAND'] - } - } - })) - return <> - Test page Back to main -
- -

Here are all Items:

- - { ([id, name]) =>
  • {id}: {name}
  • } -
    -
    + let items = createAsync(() => + client.GET("/item", { + params: { + query: { + itemId: ["HYPERION", "BAT_WAND"], + }, + }, + }) + ); + return ( + <> + Test page Back to main +
    + +

    Here are all Items:

    + + {([id, name]) => ( +
  • + {id}: {name} +
  • + )} +
    +
    -} \ No newline at end of file + ); +} -- cgit