用服务器组件写了点/folders
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-11-11 22:01:32 +08:00
parent d4f786c990
commit 94d570557b
13 changed files with 291 additions and 167 deletions

View File

@@ -3,7 +3,7 @@ import { NextRequest, NextResponse } from "next/server";
import { authOptions } from "../auth/[...nextauth]/route";
import { FolderController } from "@/lib/db";
export async function GET(req: NextRequest) {
export async function GET() {
const session = await getServerSession(authOptions);
if (session) {
return new NextResponse(