perf: auth token

This commit is contained in:
archer
2023-04-29 15:59:53 +08:00
parent 78762498eb
commit ea100d84bf
35 changed files with 38 additions and 52 deletions

View File

@@ -3,7 +3,7 @@ import { jsonRes } from '@/service/response';
import { ChatItemType } from '@/types/chat';
import { connectToDatabase, Chat } from '@/service/mongo';
import { authModel } from '@/service/utils/auth';
import { authToken } from '@/service/utils/tools';
import { authToken } from '@/service/utils/auth';
/* 聊天内容存存储 */
export default async function handler(req: NextApiRequest, res: NextApiResponse) {