Move Payload API under /gestion59/api
This commit is contained in:
@@ -1,7 +0,0 @@
|
|||||||
import { REST_DELETE, REST_GET, REST_PATCH, REST_POST } 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)
|
|
||||||
|
|||||||
7
app/(payload)/gestion59/api/[...slug]/route.ts
Normal file
7
app/(payload)/gestion59/api/[...slug]/route.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { REST_DELETE, REST_GET, REST_PATCH, REST_POST } 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)
|
||||||
Reference in New Issue
Block a user