[PIE-8] Add recipe detail view #6
@ -3,9 +3,9 @@ import client from "@/data/pocketbase";
|
||||
import SiteLayout from "@/layouts/base";
|
||||
import ImageCarousel from "@/components/Detail/ImageCarousel";
|
||||
|
||||
const { slug } = Astro.params;
|
||||
const { recipeid } = Astro.params;
|
||||
|
||||
const re = await client.collection("recipes").getOne(slug ?? "0");
|
||||
const re = await client.collection("recipes").getOne(recipeid ?? "0");
|
||||
|
||||
---
|
||||
|
Loading…
x
Reference in New Issue
Block a user