next-api-example

CRUD 範例

本專案為Next.js框架下的全端開發示範專案。
展示 Server Action 與 API Route 的 GET / POST / PUT / PATCH / DELETE。 資料存在 MySQL items 表(見 db.sql)。

GET
/api/items · /api/items/:id
POST
/api/items
PUT
/api/items/:id
PATCH
/api/items/:id
DELETE
/api/items/:id

Powered by Hy.C