移除旧版emby接口

This commit is contained in:
mtvpls
2026-02-04 16:42:05 +08:00
parent d772051213
commit b8c31d12ab
2 changed files with 8 additions and 87 deletions
+4 -1
View File
@@ -1,7 +1,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';
@@ -64,6 +64,9 @@ export async function POST(request: NextRequest) {
await db.saveAdminConfig(adminConfig);
// 更新内存缓存
await setCachedConfig(adminConfig);
return NextResponse.json({
success: true,
message: '导入成功',