feat: enhance API response handling and add new components for module management
Some checks failed
Workflow / ʦ TypeScript (push) Failing after 4m50s
Workflow / ⚫️ Test (push) Has been skipped

This commit is contained in:
T. Zehetbauer
2026-04-01 15:18:24 +02:00
parent f82a366a52
commit 7b078f298b
58 changed files with 1845 additions and 398 deletions

View File

@@ -2,6 +2,7 @@ import { NextResponse } from 'next/server';
import { createClient } from '@supabase/supabase-js';
import { apiError } from '@kit/next/route-helpers';
import { getLogger } from '@kit/shared/logger';
export async function POST(request: Request) {
@@ -113,6 +114,6 @@ export async function POST(request: Request) {
{ error: err, context: 'accept-invite' },
'[accept-invite] Error',
);
return NextResponse.json({ error: 'Serverfehler' }, { status: 500 });
return apiError('Serverfehler', 500);
}
}