Files
wish-pool/app/api/test/route.ts
2025-10-07 10:50:20 +08:00

18 lines
429 B
TypeScript

import { NextRequest, NextResponse } from 'next/server'
export async function GET(request: NextRequest) {
try {
return NextResponse.json({
success: true,
message: 'API is working',
timestamp: new Date().toISOString()
})
} catch (error) {
console.error('API Error:', error)
return NextResponse.json(
{ success: false, error: 'Failed to test API' },
{ status: 500 }
)
}
}