feat: enhance API response handling and add new components for module management
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user