← back to Wine Finder Next
app/api/sothebys/search/route.ts
27 lines
import { NextRequest, NextResponse } from 'next/server';
/**
* Sotheby's Wine Auction Search API Route
* PLACEHOLDER - Requires Sotheby's Wine API access
* TODO: Contact Sotheby's for API partnership
*/
export async function GET(request: NextRequest) {
const searchParams = request.nextUrl.searchParams;
const query = searchParams.get('q');
if (!query) {
return NextResponse.json({ error: 'Query parameter "q" is required' }, { status: 400 });
}
try {
console.log(`[Sothebys] Search requested for: ${query} (API not yet configured)`);
return NextResponse.json({ wines: [] });
// TODO: Implement Sotheby's Wine API when available
} catch (error) {
console.error('Sothebys search error:', error);
return NextResponse.json({ wines: [] });
}
}