fix(web): split PUT/DELETE into /api/docs/[...slug]/route.ts
CI / typecheck + build (turbo) (push) Canceled after 0s
CI / typecheck + build (turbo) (push) Canceled after 0s
Next.js App Router doesn't match DELETE/PUT on /api/docs/route.ts for nested paths; need a dynamic segment. POST stays at /api/docs, PUT+DELETE move to /api/docs/[...slug]. Verified DELETE works locally + via Caddy.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
---
|
||||
title: "MCP Test"
|
||||
type: "documentation"
|
||||
section: "docs"
|
||||
status: "published"
|
||||
author: ""
|
||||
tags: ["mcp"]
|
||||
path: "docs/mcp-test.md"
|
||||
created_at: "2026-08-20T06:36:23.997Z"
|
||||
updated_at: "2026-08-20T06:36:23.997Z"
|
||||
---
|
||||
# MCP
|
||||
|
||||
Created via MCP.
|
||||
@@ -0,0 +1,14 @@
|
||||
---
|
||||
title: "Test CRUD Doc"
|
||||
type: "documentation"
|
||||
section: "docs"
|
||||
status: "published"
|
||||
author: ""
|
||||
tags: ["test"]
|
||||
path: "docs/test-crud-doc.md"
|
||||
created_at: "2026-08-20T06:36:10.037Z"
|
||||
updated_at: "2026-08-20T06:36:10.037Z"
|
||||
---
|
||||
# Hello
|
||||
|
||||
This is a test.
|
||||
Reference in New Issue
Block a user