diff --git a/web/src/pages/recipe/[id]/edit.astro b/web/src/pages/recipe/[id]/edit.astro new file mode 100644 index 0000000..672288b --- /dev/null +++ b/web/src/pages/recipe/[id]/edit.astro @@ -0,0 +1,104 @@ +--- +import Base from "@layout/Base"; +import { authPB } from "@data/pb"; + +const pb = await authPB() +const { id } = Astro.params + +const rec = await pb.collection('recipes').getOne(id as string) + +const templateHeaders = rec.cooklang +const recipeId = id as string +--- + + + + +
+
+ +
+

Edit Recipe

+ +
+ +
+ +
+ + + +
+ +
+ + + +
+ +
+ +

Recipie uses Cooklang. Visit the documentation to learn more.

+
+
+ \ No newline at end of file diff --git a/web/src/pages/recipe/[id].astro b/web/src/pages/recipe/[id]/index.astro similarity index 100% rename from web/src/pages/recipe/[id].astro rename to web/src/pages/recipe/[id]/index.astro