diff --git a/src/pages/api/pages/index.api.ts b/src/pages/api/pages/index.api.ts deleted file mode 100644 index 0f3f6a439..000000000 --- a/src/pages/api/pages/index.api.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { PageProps } from '@/types/source'; -import type { NextApiRequest, NextApiResponse } from 'next'; -import pages from '~/dist/pages.json'; - -type ResponseData = PageProps[] | PageProps; - -export default function handler(req: NextApiRequest, res: NextApiResponse) { - const { slug } = req.query; - - if (slug === undefined) { - return res.status(200).json(pages); - } - - const page = pages.find((page) => page.slug === slug); - - res.status(200).json(page); -}