音乐数据v2导入导出适配

This commit is contained in:
mtvpls
2026-04-14 14:18:02 +08:00
parent ab356bf8fc
commit 1dcf27d1f8
6 changed files with 85 additions and 31 deletions
+2 -1
View File
@@ -3,7 +3,7 @@
import { NextRequest, NextResponse } from 'next/server';
import { getAuthInfoFromCookie } from '@/lib/auth';
import { getConfig } from '@/lib/config';
import { getConfig, setCachedConfig } from '@/lib/config';
import { db } from '@/lib/db';
export const runtime = 'nodejs';
@@ -66,6 +66,7 @@ export async function POST(request: NextRequest) {
// 写入数据库
await db.saveAdminConfig(adminConfig);
await setCachedConfig(adminConfig);
return NextResponse.json(
{ ok: true },