refactor: Reorganize base CRUD routes in company module and enhance error logging in my-companies API
This commit is contained in:
@@ -44,6 +44,7 @@ export const GET: RequestHandler = async ({ cookies, fetch }) => {
|
||||
return json(companies);
|
||||
} catch (error) {
|
||||
console.error('Error fetching companies:', error);
|
||||
console.log('✅ Token', token);
|
||||
return json({ error: 'Internal server error' }, { status: 500 });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user