From c7fc6c26f6c8688847c00d4c6b5eb35d57eb6761 Mon Sep 17 00:00:00 2001 From: Lucas Meier Date: Fri, 27 Sep 2024 16:58:00 -0700 Subject: [PATCH] Remove api/test --- src/pages/api/test/001.ts | 12 ------------ src/pages/api/test/002.ts | 10 ---------- 2 files changed, 22 deletions(-) delete mode 100644 src/pages/api/test/001.ts delete mode 100644 src/pages/api/test/002.ts diff --git a/src/pages/api/test/001.ts b/src/pages/api/test/001.ts deleted file mode 100644 index eebd1705..00000000 --- a/src/pages/api/test/001.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { withCaughtErrors } from '@/backend/handlers'; -import { LPQuerier } from '@/backend/indexer'; -import { NextApiRequest, NextApiResponse } from 'next'; - -const ID = 'plpid1gy5kfyg94ad4yj3wq899h6tu40f47t0t08g9fkcmjq59lv9lu20qdq2vep'; - -async function test(_req: NextApiRequest, res: NextApiResponse): Promise { - const lps = LPQuerier.fromEnv(); - res.status(200).json(await lps.updates(ID)); -} - -export default withCaughtErrors('test/001', test); diff --git a/src/pages/api/test/002.ts b/src/pages/api/test/002.ts deleted file mode 100644 index cda667f3..00000000 --- a/src/pages/api/test/002.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { withCaughtErrors } from '@/backend/handlers'; -import { BlockQuerier } from '@/backend/indexer'; -import { NextApiRequest, NextApiResponse } from 'next'; - -async function test(_req: NextApiRequest, res: NextApiResponse): Promise { - const blocks = BlockQuerier.fromEnv(); - res.status(200).json(await blocks.blocks({ last: 20 })); -} - -export default withCaughtErrors('test/002', test);