Design system.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

15 行
354 B

  1. import {NextApiHandler} from 'next';
  2. import {readFile} from 'fs/promises';
  3. const handler: NextApiHandler = async (req, res) => {
  4. const typedocJson = await readFile('./.data/typedoc-data.json', 'utf-8');
  5. const typedocData = JSON.parse(typedocJson);
  6. res.json(
  7. typedocData.children.map((c) => ({
  8. name: c.name,
  9. }))
  10. );
  11. };
  12. export default handler;