mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-27 15:24:42 +08:00
feat: make get config sync
This commit is contained in:
@@ -23,7 +23,7 @@ export async function GET(request: Request) {
|
||||
);
|
||||
}
|
||||
|
||||
const apiSites = getAvailableApiSites();
|
||||
const apiSites = await getAvailableApiSites();
|
||||
|
||||
try {
|
||||
// 根据 resourceId 查找对应的 API 站点
|
||||
|
||||
@@ -10,7 +10,7 @@ export async function GET(request: Request) {
|
||||
const query = searchParams.get('q');
|
||||
|
||||
if (!query) {
|
||||
const cacheTime = getCacheTime();
|
||||
const cacheTime = await getCacheTime();
|
||||
return NextResponse.json(
|
||||
{ results: [] },
|
||||
{
|
||||
@@ -21,7 +21,7 @@ export async function GET(request: Request) {
|
||||
);
|
||||
}
|
||||
|
||||
const apiSites = getAvailableApiSites();
|
||||
const apiSites = await getAvailableApiSites();
|
||||
const searchPromises = apiSites.map((site) => searchFromApi(site, query));
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user