refactor: Reorganize base CRUD routes in company module and enhance error logging in my-companies API

This commit is contained in:
2025-11-12 09:20:14 -06:00
parent 3c2094314b
commit 70f7d1f868
2 changed files with 16 additions and 16 deletions

View File

@@ -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 });
}
};