create-payload-app 3.41.0-canary.3 → 3.41.0-canary.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,12 @@
|
|
1
1
|
import configPromise from '@payload-config'
|
2
2
|
import { getPayload } from 'payload'
|
3
3
|
|
4
|
-
export const GET = async () => {
|
4
|
+
export const GET = async (request: Request) => {
|
5
5
|
const payload = await getPayload({
|
6
6
|
config: configPromise,
|
7
7
|
})
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
return Response.json({
|
10
|
+
message: 'This is an example of a custom route.',
|
11
11
|
})
|
12
|
-
|
13
|
-
return Response.json(data)
|
14
12
|
}
|