fix(web): split PUT/DELETE into /api/docs/[...slug]/route.ts
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:
asepharyana
2026-08-20 13:38:26 +07:00
parent 98437cb999
commit 8ed8c677e8
4 changed files with 88 additions and 42 deletions
+14
View File
@@ -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.
+14
View File
@@ -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.