import { NextResponse } from 'next/server' import { fetchStorageData } from '@/lib/storage' export async function GET() { try { const data = await fetchStorageData() return NextResponse.json(data) } catch (error) { console.error('Storage API error:', error) return NextResponse.json( { error: 'Failed to fetch storage data' }, { status: 500 } ) } }