From 199234a7e27642e38b246c740ac111e12b3afaad Mon Sep 17 00:00:00 2001 From: tobias Date: Fri, 5 Jul 2024 22:34:09 +0200 Subject: [PATCH] Remove misbehaving test route --- src/app/my-route/route.ts | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/app/my-route/route.ts diff --git a/src/app/my-route/route.ts b/src/app/my-route/route.ts deleted file mode 100644 index 5c4d013..0000000 --- a/src/app/my-route/route.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { getPayloadHMR } from '@payloadcms/next/utilities' -import configPromise from '@payload-config' - -export const GET = async () => { - const payload = await getPayloadHMR({ - config: configPromise, - }) - - const data = await payload.find({ - collection: 'users', - }) - - return Response.json(data) -}