mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-05 06:42:12 +03:00
fix: correct SkillsMP marketplace API response mapping for Docker instances (#988)
This commit is contained in:
@@ -33,7 +33,7 @@ export async function GET(request: Request) {
|
||||
}
|
||||
|
||||
const data = await res.json();
|
||||
return NextResponse.json({ skills: data.skills || [] });
|
||||
return NextResponse.json({ skills: data.data?.skills || data.skills || [] });
|
||||
} catch (err: unknown) {
|
||||
const error = err instanceof Error ? err.message : String(err);
|
||||
return NextResponse.json({ error }, { status: 500 });
|
||||
|
||||
Reference in New Issue
Block a user