summaryrefslogtreecommitdiff
path: root/frontend/app/api/storage/route.ts
blob: 6e0799321da988440f965de55b6a525162a04e71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 }
    )
  }
}