mirror of
https://github.com/xtr-dev/payload-notifications.git
synced 2025-12-10 19:03:23 +00:00
13 lines
287 B
TypeScript
13 lines
287 B
TypeScript
import configPromise from '@payload-config'
|
|
import { getPayload } from 'payload'
|
|
|
|
export const GET = async (request: Request) => {
|
|
const payload = await getPayload({
|
|
config: configPromise,
|
|
})
|
|
|
|
return Response.json({
|
|
message: 'This is an example of a custom route.',
|
|
})
|
|
}
|