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 { searchFromApi } from '@/lib/downstream';
export const runtime = 'edge';
@@ -21,7 +21,7 @@ export async function GET(request: Request) {
);
}
const apiSites = getApiSites();
const apiSites = getAvailableApiSites();
const searchPromises = apiSites.map((site) => searchFromApi(site, query));
try {