import { sql } from '@vercel/postgres'; export default async function handler(req, res) { if (req.method !== 'GET') { return res.status(405).json({ error: 'Method not allowed' }); } try { // For now, return mock collections until we implement user authentication const mockCollections = [ { id: 1, name: 'My MTG Collection', game: 'MTG' }, { id: 2, name: 'Pokemon Favorites', game: 'Pokemon' }, { id: 3, name: 'Lorcana Disney', game: 'Lorcana' }, { id: 4, name: 'Rare Cards', game: 'MTG' }, { id: 5, name: 'Holographic Collection', game: 'Pokemon' } ]; res.status(200).json(mockCollections); } catch (error) { console.error('Error fetching collections:', error); res.status(500).json({ error: 'Failed to fetch collections' }); } }