Starting basic API client

This commit is contained in:
2025-08-15 19:01:47 +12:00
parent f7e24657f5
commit 2e54690ee4
3 changed files with 44 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
---
import client from "@/data/pocketbase";
import client, { client2 } from "@/data/pocketbase";
import SiteLayout from "@/layouts/base";
import ImageCarousel from "@/components/Detail/ImageCarousel";
import IngredientTableView from "@/components/Detail/IngredientTableView";
@@ -8,6 +9,9 @@ import InfoView from "@/components/Detail/InfoView";
const { recipeid } = Astro.params;
const re2 = await client2.getRecipe(recipeid as string)
console.log(re2)
const re = await client.collection("recipes").getOne(recipeid ?? "0");
const stepIds = re.steps