优化黑白名单

This commit is contained in:
sijinhui
2024-01-23 13:42:10 +08:00
parent e98643c7c8
commit 7a8db39a2a
7 changed files with 98 additions and 89 deletions

View File

@@ -8,7 +8,8 @@ import {
// DatePicker,
} from "@tremor/react";
import UsageByModel from "./usage-by-model-chart";
import { getSession, ADMIN_LIST, isName } from "@/lib/auth";
import { getSession } from "@/lib/auth";
import { isName, ADMIN_LIST } from "@/lib/auth_list";
import { redirect } from "next/navigation";
export default async function AdminPage() {