Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 3m43s
Build & Deploy / 🏗️ Build (push) Failing after 37s
Build & Deploy / 🧪 QA (push) Failing after 3m40s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
17 lines
406 B
TypeScript
17 lines
406 B
TypeScript
import config from "@payload-config";
|
|
import {
|
|
REST_DELETE,
|
|
REST_GET,
|
|
REST_OPTIONS,
|
|
REST_PATCH,
|
|
REST_POST,
|
|
REST_PUT,
|
|
} from "@payloadcms/next/routes";
|
|
|
|
export const GET = REST_GET(config);
|
|
export const POST = REST_POST(config);
|
|
export const DELETE = REST_DELETE(config);
|
|
export const OPTIONS = REST_OPTIONS(config);
|
|
export const PATCH = REST_PATCH(config);
|
|
export const PUT = REST_PUT(config);
|