Starting basic API client
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user