This commit is contained in:
archer
2023-05-11 17:29:46 +08:00
parent 451f234f68
commit 3e4b165ed9
7 changed files with 45 additions and 15 deletions

View File

@@ -0,0 +1,11 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from 'next';
import { jsonRes } from '@/service/response';
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
jsonRes(res, {
data: {
beianText: process.env.SAFE_BEIAN_TEXT || ''
}
});
}