mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: api error
This commit is contained in:
parent
119b1ceba9
commit
60293dcbec
@ -6,6 +6,7 @@ export async function GET(_: Request) {
|
||||
const response = await GetNezhaData();
|
||||
return NextResponse.json(response, { status: 200 });
|
||||
} catch (error) {
|
||||
return NextResponse.json({ error: error }, { status: 200 });
|
||||
console.error(error);
|
||||
return NextResponse.json({ error: error }, { status: 400 });
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user