feat: roughly admin info struct and interface

This commit is contained in:
shinya
2025-07-05 00:29:43 +08:00
parent 44ce8241c6
commit a4c56e2cdd
15 changed files with 1305 additions and 53 deletions

View File

@@ -1,6 +1,6 @@
import { NextResponse } from 'next/server';
import { getApiSites, getCacheTime } from '@/lib/config';
import { getAvailableApiSites, getCacheTime } from '@/lib/config';
import { getDetailFromApi } from '@/lib/downstream';
export const runtime = 'edge';
@@ -19,7 +19,7 @@ export async function GET(request: Request) {
}
try {
const apiSites = getApiSites();
const apiSites = getAvailableApiSites();
const apiSite = apiSites.find((site) => site.key === sourceCode);
if (!apiSite) {