chore: split question and and answer to components

This commit is contained in:
Joel
2024-01-26 16:41:16 +08:00
parent c8f730208d
commit 4a75e3774a
5 changed files with 348 additions and 194 deletions

View File

@ -9,7 +9,8 @@ export async function GET(request: NextRequest) {
return NextResponse.json(data as object, {
headers: setSession(sessionId),
})
} catch (error) {
return NextResponse.json([]);
}
catch (error) {
return NextResponse.json([])
}
}