create-payload-app 3.41.0-canary.2 → 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
- const data = await payload.find({
10
- collection: 'users',
9
+ return Response.json({
10
+ message: 'This is an example of a custom route.',
11
11
  })
12
-
13
- return Response.json(data)
14
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-payload-app",
3
- "version": "3.41.0-canary.2",
3
+ "version": "3.41.0-canary.4",
4
4
  "homepage": "https://payloadcms.com",
5
5
  "repository": {
6
6
  "type": "git",