test: remove root:true from test config
This commit is contained in:
@@ -251,10 +251,10 @@ export type Endpoint<U = User> = {
|
|||||||
*/
|
*/
|
||||||
path: string
|
path: string
|
||||||
/**
|
/**
|
||||||
* @deprecated in 3.0
|
|
||||||
*
|
|
||||||
* Please add "root" routes under the /api folder in the Payload Project.
|
* Please add "root" routes under the /api folder in the Payload Project.
|
||||||
* https://nextjs.org/docs/app/api-reference/file-conventions/route
|
* https://nextjs.org/docs/app/api-reference/file-conventions/route
|
||||||
|
*
|
||||||
|
* @deprecated in 3.0
|
||||||
*/
|
*/
|
||||||
root?: never
|
root?: never
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ export default buildConfigWithDefaults({
|
|||||||
{
|
{
|
||||||
path: '/config',
|
path: '/config',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
root: true,
|
|
||||||
handler: (req) => {
|
handler: (req) => {
|
||||||
return Response.json(req.payload.config)
|
return Response.json(req.payload.config)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user