fix(web): remove payload REST API route + cli backup guards
Remove Payload's /api/[...slug] route that conflicts with existing /api/[...route]. Blog/changelog pages use Payload's local API. Includes cli install.ts backup + assertNoMcpLoss guards (from worktree agent). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
import { REST_DELETE, REST_GET, REST_OPTIONS, REST_PATCH, REST_POST, REST_PUT } from "@payloadcms/next/routes";
|
||||
import config from "@payload-config";
|
||||
|
||||
export const GET = REST_GET(config);
|
||||
export const POST = REST_POST(config);
|
||||
export const DELETE = REST_DELETE(config);
|
||||
export const PATCH = REST_PATCH(config);
|
||||
export const PUT = REST_PUT(config);
|
||||
export const OPTIONS = REST_OPTIONS(config);
|
||||
Reference in New Issue
Block a user