feat: item management #46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/item-management"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create /api/items/[id].ts to handle dynamic routes for DELETE and PATCH. Astro only routes static files automatically. Move DELETE and PATCH handlers to the dynamic route file. Also update ItemForm to use /api/items/{id} for PATCH requests and simplify payload construction.